# Actionscript to Print MC with printJob()

**URL:** https://forum.kirupa.com/t/actionscript-to-print-mc-with-printjob/49504
**Category:** flash
**Created:** [April 23, 2004, 12:16pm UTC](https://forum.kirupa.com/t/actionscript-to-print-mc-with-printjob/49504 "2004-04-23T12:16:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ashishchandras](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@ashishchandras](https://forum.kirupa.com/u/ashishchandras)
#### Post date: [April 23, 2004, 12:16pm UTC](https://forum.kirupa.com/t/actionscript-to-print-mc-with-printjob/49504/1 "2004-04-23T12:16:11Z")

</div>

I have on MC in Library. And my stage has (865 X 865) size. Their are other MCs also in Library with diff print sizes.  
There is a print button in each MC. For eg, I am attaching MC, A to the stage having width and height - (596 X 842) pixels.  
Following is the script written over the Print Button which is not working …can anyone HELP or give any suggession over it

onRelease(){  
var my\_pj = new PrintJob();  
var myResult = my\_pj.start();  
if(myResult){  
myResult = my\_pj.addPage("\_root.A", {xMin:0, xMax:596, yMin:0; yMax:842}, 1);  
my\_pj send();  
}  
delete my\_pj;  
}

A MC contains a report generated using XML file. Can u also give me some inputs, how do I print Multiple Pages by giving just a sinlge click on the button. :hat:

Thanx

Ashish
