# Printing dynamic content

**URL:** <https://forum.kirupa.com/t/printing-dynamic-content/171172>\
**Category:** Uncategorized\
**Created:** [December 2, 2005, 12:46pm UTC](https://forum.kirupa.com/t/printing-dynamic-content/171172 "2005-12-02T12:46:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![decenttp](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@decenttp](https://forum.kirupa.com/u/decenttp)\
**Post date:** [December 2, 2005, 12:46pm UTC](https://forum.kirupa.com/t/printing-dynamic-content/171172/1 "2005-12-02T12:46:57Z")

</div>

Hi everyone, i have been working on this application which loads a lot of external swf files, scales them and then i needed user to print each swf on a separate page. To do this, i created a new movieclip and created blank keyframes in it and on every frame i wrote “loadmovie” command to load these swf files.

Everything worked fine until i got to printing. I had used printjobclass to create a job and print pages/frames as per user selection. But no matter what i do it only prints one page, the last frame of that movieclip. Code is as below :

var pj = new PrintJob();  
var success = pj.start();  
if(success)  
{  
for(var i=1;i\<=mpages;i++)  
{  
pj.addPage(“mc\_print”,{xMin:0,xMax:612,yMin:0,yMax:792},{printAsBitmap:false},i);  
}  
pj.send();  
}  
delete pj;

I was just wondering if any of you guys have worked on something similar encountered the same issue and found a way to get it working.

Any help on this is highly appreciated.

rohit:)
