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

2010-07-09 Thread Scott
I don't know the resolution but I can see why this is happening.

 

The sprite capture will just capture the screen area and what was within
the rectangle during the snapshot.  It doesn't care or know what
components are under the sprite rectangle.

 

This guy talks about the issue a bit:
http://mildlyannoyedaussie.wordpress.com/2007/11/27/flex-printing-breakt
hrough-and-more/

 

I've been thinking about printing since this is something I will have to
do in the future as well.  I'm actually considering building a .PDF file
which could be printed or downloaded.

 

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ramalingam G
Sent: Thursday, July 08, 2010 9:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to print full content of TextArea component ?

 

  

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




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[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