It all comes down to how you are printing the TextArea in the first
place!

 

PrintJob allows you to give a Rectangle along with the Sprite to define
the printing area.

Once you've called PrintJob.start() you can get the pageWidth and
pageHeight of the paper and use these values along with the sizes of
your TextArea to create your print area. You can then call
PrintJob.addPage() as many times as required to cover all your TextArea.

 

Does that make sense?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:       01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
<blocked::http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Otto
Sent: 08 January 2008 14:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Printing very long textarea

 

Hello,
I've run into a small issue making a print feature for my application 
(flex3 beta3). I have a textarea that may contain lots of text, 
enough to wrap beyond the first page. The problem is that it doesn't 
wrap inbetween lines but it just cuts a line in two. See sample pdf 
here [1].

Is there any way around this? Is it possible to split the textarea in 
two programmatically?

cheers,
Otto

[1] http://themansion.mine.nu/otto/files/split.pdf
<http://themansion.mine.nu/otto/files/split.pdf> 

 

Messages in this topic
<http://groups.yahoo.com/group/flexcoders/message/98221;_ylc=X3oDMTM3dHJ
yMzFjBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2d
JZAM5ODIyMQRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzExOTk4MDM5NjcEdHBjSWQDOTgyMjE
-> (1) Reply (via web post)
<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJyZHI3dWpoBF9T
Azk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAM5ODIy
MQRzZWMDZnRyBHNsawNycGx5BHN0aW1lAzExOTk4MDM5Njc-?act=reply&messageNum=98
221> | Start a new topic
<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmMGRhdTlqBF9T
Azk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNs
awNudHBjBHN0aW1lAzExOTk4MDM5Njc-> 

Messages
<http://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmMWdnaHZi
BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRy
BHNsawNtc2dzBHN0aW1lAzExOTk4MDM5Njc->  

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

MARKETPLACE

 

Reply via email to