printing multiple pages?
Hi--
I've been killing myself for weeks on this issue and still can't figure it out.
I'm importing a large text file and trying to print it with a footer. My method for all of this is very simple. I'm dynamically creating a sprite container that is fed to the the printjob() class. Inside that I'm creating a dynamic text field and scaling it to the right page height/width (408x574) and adding a footer below that.
Using a loop, I'm scrolling the text field to the top of the next page and adding the page number to the footer and adding the page to the job. Mostly, this works fine, but I'm noticing some lines from the text field are not printing. This happens at the page breaks and is not consistent across different printers I use.
Essentially, this is the code I use to print:
if (pj.start()) {
rect1 = new Rectangle(-60,-66,540,720);
for (i=0;i<10;i++) {
pj.addPage(container,rect1);
tf.scrollV+=56;
container.footer.pageNum.htmlText="- "+Number(i+1)+" -";
}
pj.send();
pj=null;
}
This whole project has been more than a little frustrating because I'm getting so many conflicting pieces of data. For example, using textLineMetrics, I learned each and every line of my text field is 14 pixels high. That's why I'm using the 574px height. That equates to 41 lines of text, but viewing it onscreen, it's more than that.
Please...please! If anyone can offer some insight or a fix for this, I'll be very grateful.
Thank you!