Solved

Printing multiple pages if dynamic text is too long for one page

Posted on 2009-05-13
1
250 Views
Last Modified: 2012-05-06
I have a dynamic text field that is populated by XML. I have a simple print MC that loads the text into a dynamic text box and prints using the code below. It prints well, however sometimes there will be more than one pages worth of text drawn from the XML.

I can work out a way of printing  to multiple pages if the text is too long for one page. Right now it just cuts of the text that doesn't fit. Is there someway of checking how many lines there are and splitting the text up or someway of forcing multiple pages?
var pj = new PrintJob();
var success = pj.start();
if(success) {
	pj.addPage("_root.print_notes");
	pj.send();
}
delete pj;

Open in new window

0
Comment
Question by:alex_wareing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 24383367
Hello, I'm going to provide you with the logic i'd use.
you'll stick the text from the xml into a textfield off stage. the textfield autosizes.then get the size of the textfield. set the coordinates for the print job.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IE 11 Flash Player issue 7 263
Can't find all of the preferences on Flash Pro 2 501
2012 Domain With 350 Machines All Running Windows 7 7 141
type of website 13 52
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question