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
Recent comments
5 years 1 week ago
7 years 23 weeks ago
9 years 12 weeks ago
10 years 34 weeks ago
11 years 7 weeks ago
11 years 7 weeks ago
11 years 11 weeks ago
11 years 11 weeks ago
11 years 12 weeks ago
11 years 14 weeks ago