[flexcoders] How to print full content of TextArea component ?

2010-07-08 Thread Ramalingam G
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



[flexcoders] How to print full content of TextArea component

2010-06-26 Thread Ramalingam G
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