Hello everyone,
I am re-posting this. The print() function listed below prints only the visible 
area (scrolled somewhere) of the TextArea component. But, I want to print full 
contents of the TextArea.

private function print():void{
var printResult:PrintJob = new PrintJob();
var output:Sprite = new Sprite();
var rect1:Rectangle = new Rectangle(0, 0, 0, 0);

output = Sprite(Result);
if(printResult.start()){
printResult.addPage(output, rect1);
printResult.send();
}
else printResult = null;
}

<s:TextArea id="Result" height="327" width="290" fontSize="18" 
paddingBottom="6" fontFamily="Arial" x="13" y="28" editable="false" 
contentBackgroundColor="#A8C6AE" borderVisible="false" textAlign="right" 
fontWeight="normal"/>

<s:Button x="13" y="366" id="Print" label="Print" width="49" height="30" 
click="print();" toolTip="CTRL + P"/>

Any one can help me?
Thanks in advance.
Ramalingam

Reply via email to