Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-21 Thread Meinte van't Kruis
Very cool idea Haikal! Certainly seems the best option for text printing, I'm going to try it one day. thanks, -Meinte On 8/21/06, Haikal Saadh [EMAIL PROTECTED] wrote: My approach to printing oodles of multiline text is to let the browser do it: * When the print button is pressed, save

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-20 Thread Peter O'Brien
Hey guys thanks for the code and input. The route I think I'm taking because it's html text and formatted, is to keep trimming at br's and checking if page is not too high. The page to print symbol I'm using has an aspect ratio for an A4 page (1: 1.414) and one big html text field (with 20px

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-20 Thread Haikal Saadh
My approach to printing oodles of multiline text is to let the browser do it: * When the print button is pressed, save the contents of the text field to a Local Shared Object * Open up an empty HTML page, which has as invisible flash movie which can then: o Read that

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Peter O'Brien
I have the same problem as the original poster. I don't suppose anyone can provide more info as a solution than Hans, or Hans if you're there I would love to see some code. What are flash mc dimensions to match an A4 page? Doesn't it vary according to screen resolution? How can you

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread hank williams
Yeah, I asked this question on Flexcoders but got no answer at all. Any code would be greatly appreciated :) The funny thing is this printing a block of multipage text seems like such a basic thing but there are no examples in the docs and it seems as thought this issue was never considered as a

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Meinte van't Kruis
my solution is scrolling the text and printing as you go, here's the function. (beware though, it's been ages since writing this, it works tho) function buildPrinter() { _root.print.onPress = function() { var p_length = Math.round(Math.floor

Re: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Meinte van't Kruis
_root.test is the textfield, _root.line_length is the lines fitting on one page. good luck! -Meinte On 8/18/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: my solution is scrolling the text and printing as you go, here's the function. (beware though, it's been ages since writing this, it

RE: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Danny Kodicek
I have the same problem as the original poster. I don't suppose anyone can provide more info as a solution than Hans, or Hans if you're there I would love to see some code. What are flash mc dimensions to match an A4 page? Doesn't it vary according to screen resolution? As long as it's

RE: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-08-18 Thread Danny Kodicek
How can you efficiently fill a textfield to the point in which you know it is completely full? Here's a revised version using a word array. But as I said, including formatting would be more difficult and significantly slower. I tend to agree with Meinte that in this case you're better off using

RE: [Flashcoders] PRINTJOB HELL, PRINTJOB NIGHTMARE with several PAGES

2006-04-24 Thread Van De Velde Hans
You get your text from the textarea and you do this: Dynamically attach a movieclip from the library with a preformatted textfield that exactly fits an A4 page (set movieclip to _visible = false to do it invisibly) and fill the textfield up with the text from your textarea until the textfield is