I want to print the contents of my scrollpane

scroll pane is dynamically loaded.

I want to print the contents of it , but it only prints the visible area.

This must be an easy fix right?

EDIT: I did the “mc off stage” fix, but i still have an issue with multiple pages worth of text. I’m looking at the PrintJob class, but don’t see how to split my textfield’s content onto multiple pages in order to print without scaling the text.

Any help?

-bump-

Is it just me, or did Flash printing capibility go from completely retarded to just a bit stupid with the introduction of the BlowJ… er I mean PrintJob object?

consider this:



var printer_txt:TextField = printer_mc.createTextField("printResults_txt", 1, 10, 10, 550, 20);
var printFormat:TextFormat = new TextFormat();
printFormat.size = 10;
printer_txt.autoSize = true;
printer_txt.multiline = true;
printer_txt.wordWrap = true;
printer_txt.html = true;
printer_txt.htmlText = getTextData();
printer_txt.setTextFormat(printFormat);

function printPage():Void {

	var pj = new PrintJob();

	var success = pj.start();
	if (success) {
		
		pj.addPage("printer_mc", {xMin:0, xMax:printer_mc._width, yMin:0, yMax:printer_mc._height});

		pj.send();
	}

	delete pj;
}

my text field is attached to the “printer_mc” and populated before the the printjob is instatiated. I used it’s width for the width of the printable area. IT STILL GETS CLIPPED? WHY? The width of the mc is 560 px? I’ve verifed that our printer can print much wider?

Further more, is there simply not a way for flash to “start printing on a new page” when the postscript data extend beyond the printable area of the printer? If there isn’t, Macromedia needs to replace some monkeys with real ppl and figure that out…

please excuse my venting, but im only half kidding, I’ve spent too much time on this…

PrintJob tutorial someone?? (Better than the actionscript.org one please)