PDA

View Full Version : Printing A Scrollable Text Field



aaronmatthew
March 3rd, 2005, 06:51 PM
I am stuck on something and hopefully one of you can help. I have a dynamic text field that scrolls. When I print I can only print what is viewable on the screen and not all the text being scrolled. How do I print what is not viewable within the scrollable text field?

Oh yeah, and I don't want to parse the XML content and dynamic Flash conent into several diff frames to print like that since I am using 1 scroller to handle like 30 diff pieces of XML & Flash driven content.

Thanks

--aaronmatthew

P.S. This is a CD-ROM app and can't be posted.

spartan018
March 3rd, 2005, 07:25 PM
do you want to print the UI as well as the text or just the text? if just the text, you could probably make a separate field off of to the side and print that instead

pou-pou
March 4th, 2005, 01:54 AM
yeah, the easiest way would maybe be that just put a link somewhere there that says 'print friendly version', or whatever you want, which will take the user to just plain html page or something :toad:

sera
March 9th, 2005, 09:58 PM
Hello, I am doing a simple ebook program and have encountered some problems regarding printing the contents of a scrolling dynamic textbox.

At first, I tried the method suggested by spartan018, ie. putting another dynamic textbox off the stage and set the frame to #p. But somehow I could not get it to print all the text out.
So I tried the second method suggested by gnu- , ie. "put a link somewhere there that says 'print friendly version', or whatever you want, which will take the user to just plain html page or something".

There are 2 problems which I encountered while trying out the above method:

1. Accessing the value of ChapNoX variable from ebook02 from printerFriendly.html. This value is needed so that the scroller in ebook02 displays the correct Chapter No, which is stored in ChapNoX variable in ebook02.fla.

2. The dynamic textbox "scroller" in printerFriendly.fla could not be stretched any further as the height of the stage has a limit of 2880 pixels. This caused the text passed into the scroller in the PrinterFriendly page to be cut short.

( I used 3 fla files namely, ebook02.fla (the Main program), Chapters.fla (to publish the ChapterXX.swf files individually), and printerFriendly.fla (to publish the printerFriendly.html page). I would like to put up the files here but it's too large.

Can anyone help me with this problem please? Thanks! :)