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.