Thanks for this one! I've added it to my arsenal of useful
routines. It also gets my "DOH!" of the month (OK, so it's early
yet...). It should be obvious to us that we need to gracefully
handle the users' canceling of print operations in our apps. Hey,
why would anyone want to cancel a 250 page print job to that old
Canon BJ3000?
Now, if the RB team could use the same functions internally since
this affects the IDE as well as built apps :(.
Tim
--
Tim Jones
[EMAIL PROTECTED]
On Jan 3, 2007, at 4:27 PM, Tom Benson wrote:
Tim,
Here's my solution for OS X, not sure if it can be done for
windows, or even if it's a problem on that platform.
Function CancelPrinting() as boolean
dim ok As Boolean
// MACINTOSH
#IF TargetMacOS
#IF TargetCarbon
Declare SUB PMError Lib "CarbonLib" () as Integer
#ELSE
Declare SUB PMError Lib "InterfaceLib" alias "PrError" () as Short
#ENDIF
ok = (PMError() <> 0)
// WINDOWS
#ELSE
ok = False // Don't know if it's possible in Win32
#ENDIF
RETURN ok
End Function
Now in your main loop, just before beginning drawing a new page,
test if the
user have not hit the Cancel button :
If CancelPrinting() then
...
End if
This solved the issue for me,
Cheers,
Tom
On 04/01/2007, at 9:41 AM, Tim Jones wrote:
Hi Folks,
Title says it all. This is true all the way back to 5.5.5.
http://www.realsoftware.com/feedback/viewreport.php?
reportid=lgeaxbar
Please sign on if this affects you or your apps.
Tim
--
Tim Jones
[EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>