Hello everyone,
The print() function listed below prints only the visible area 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"/>
Any one can help me?
Thanks in advance.
Ramalingam