Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

help printing textarea

$
0
0

Hello,

 

I have problem printing textarea when sending it to print job and here my code:

 

<mx:TextArea id="mainTextField" styleName="letterTextArea" wordWrap="true" x="46" y="38" width="666" height="389" horizontalScrollPolicy="off"/>

 

private function printLetter():void
            {
                var printJob:PrintJob = new PrintJob();
                printJob.copies = 1;
                printJob.orientation = PrintJobOrientation.PORTRAIT;
               
                //var rect:Rectangle = new Rectangle(0,0,800,600);
               
                printJob.start();
           
                try
                {
                    printJob.addPage(mainTextField);
                    printJob.send();
                }
                catch(err:Error)
                {
                    //Alert.show("Error printing letter: "+err);
                }
            }

 

...the only printed in the printer is the visible part of textarea. How can I print the entire text? any idea?

 

thanks a lot.

cheers.


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>