Skip to main content
Known Participant
May 16, 2013
Answered

Check Printer status- Print

  • May 16, 2013
  • 1 reply
  • 2604 views

Hi All

would anyone beable to direct me in the right direction when it comes to printing from flash?

Is there some script that would beable to check the status of a printer before it prints and give a pop up message saying something like 'Printing...Please wait' then a pop up saying 'Printing Complete' that kind of thing?

Any thoughts and help would be great appreciated

Many thanks

This topic has been closed for replies.
Correct answer kglad

would it somehow have to be set up as a URL link?


no, you can't prevent the user's printer window from appearing unless you're creating an air or projector app.

to print a bitmap image, you should load it first.  you can then print it.

1 reply

kglad
Community Expert
Community Expert
May 16, 2013

the start() method of the printjob class returns a boolean indicating if a printer is available but there's no way to check when printing is complete.

DK1120Author
Known Participant
May 16, 2013


hey there

thanks for the reply, this is what I found in relation to printjob, but again, don't quite understand how it would have indicated if printing is finished. So you are saying it is not possible to detect when the printing is finished


printBtn.onRelease = function()
{
var my_pj = new PrintJob();
var myResult = my_pj.start();
if(myResult){
myResult = my_pj.addPage (0, {xMin : 0, xMax: 400, yMin: 0,
yMax: 400});
myResult = my_pj.addPage ("printArea", {xMin : 0, xMax: 400,
yMin: 400, yMax: 800},{printAsBitmap:true}, 1);
myResult = my_pj.addPage (1, null,{printAsBitmap:false}, 2);
myResult = my_pj.addPage (0);
my_pj.send();
}
delete my_pj;
}

DK1120Author
Known Participant
May 16, 2013

this


myButton.onRelease = function() {
var my_pj = new PrintJob();
var myResult = my_pj.start();
if (myResult) {
myResult = my_pj.addPage(0, {xMin:0, xMax:924, yMin:0, yMax:719});
my_pj.send();
}
delete my_pj;
};