View Full Version : PrintJob
Hi,
I had no luck in printing specific movieclips with FLash MX so havce turned to Flash MX 2002, but need abit of guidance as the following does not work:
on (press) {
var pageCount = 0;
var my_pj = new PrintJob();
my_pj.addPage("printmoviehw", {xMin:0, xMax:400, yMin:0, yMax:400}, {printAsBitmap:true}, 0);
my_pj.addPage("printmoviehc", {xMin:0, xMax:400, yMin:0, yMax:400}, {printAsBitmap:true}, 0);
my_pj.send();
}
Any help would be welcome,
Thanks,
Sanjay
ramke
11-05-2003, 04:35 PM
Are u trying to print on the users pc? IF so you may have to do the start. PrintJob.Start() ie my_pJ.start(). This will start spooling and trigger the print dialog on the users pc.
regards
Thanks ramke,
All works fine now.
Regards,
Sanjay
ramke
11-06-2003, 03:19 AM
Hi Sanj,
If you want u can rewrite the code like this in which you can delete the object safely.
on (press) {
var pageCount = 0;
var my_pj = new PrintJob();
var my_result = my_pj.start();
if (my_result){
my_result = my_pj.addPage("printmoviehw", {xMin:0, xMax:400, yMin:0, yMax:400}, {printAsBitmap:true}, 0);
my_result = my_pj.addPage("printmoviehc", {xMin:0, xMax:400, yMin:0, yMax:400}, {printAsBitmap:true}, 0);
my_pj.send();
}
delete my_pj;
}
Make sure your publish setting r ok.
Hope this helps.
Bill_Lumberg
11-08-2003, 12:59 AM
Originally posted by ramke
Hi Sanj,
If you want u can rewrite the code like this in which you can delete the object safely.
on (press) {
var pageCount = 0;
var my_pj = new PrintJob();
var my_result = my_pj.start();
if (my_result){
my_result = my_pj.addPage("printmoviehw", {xMin:0, xMax:400, yMin:0, yMax:400}, {printAsBitmap:true}, 0);
my_result = my_pj.addPage("printmoviehc", {xMin:0, xMax:400, yMin:0, yMax:400}, {printAsBitmap:true}, 0);
my_pj.send();
}
delete my_pj;
}
Make sure your publish setting r ok.
Hope this helps.
I'm really having trouble making this work. My code is identical to that above (besides the X and Y sizes) and it still doesn't work. My printer just sits there spooling with lights flashing but nothing happens. I don't think its the printer cause I tried to print it on the color laser beast and it still didn't work.
Question:
The "printmoviehc" and the "printmoviehw" are those specific pages or movie clips? If I was wanting to print "pg1" would I just substitute it for "printmoviehw"?
Any help would be greatly appreciated.
-BL
Thants correct, substitute the movieclip name with "pg1", have you made sure that of the instance name?
Regards,
Sanjay
vBulletin v3.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.