Skip navigation.
Home

A proper Cancel Printing Features for Flex 2.01

I highly recommend reading my first entry on Flex Printing, unless you alrady know how to. I am going to show you some advance printing items now.

I believe these features NEED to be included in any Flex Printing that you might want to do.

 

I am going to implement a proper way to handle a canceled print job.

1.  I am going to use the same function that   I used earlier.

 -----------------------------------------------------------------------------------------

private function doPrint():Void

{

    var pj:FlexPrintJob = newFlexPrintJob();
    pj.start();
    pj.addObject(printContainer);
    pj.send();

 }

--------------------------------------------------------------------------------------------

2.  Adding in a IF statement

if(pj.start()!= true)
{

return;
}

---------------------------------------------------------------------------------------------

Pretty simple huh!  This has  Flex go back to the application if the user cancels their print job