I tried your code below but it didnt work. I'll try again.

As for the question how the app aborts when clicking the Stop button, the 
answer is that the app quits and the system sends a message saying that the app 
so and so quit unexpectedly.

Thanks,

>From: Francois Van Lerberghe <[EMAIL PROTECTED]>
>Date: Tue, 10 Oct 2006 18:00:28 +0200
>
>le 10/10/06 15:46, Carlo Rubini <[EMAIL PROTECTED]> a =E9crit=A0:
>
> > I start a printing job from a RB app.
> >=20
> > In the system-window I click on 'Preview', and while the system is loadin=
>g the
> > various pages I click the Cancel button. My application aborts.
> >=20
> > Is there a way to trap such userCancelled event?
>
>Before drawing a page to your graphic object, you could test system printin=
>g
>error :
>
>Create a function (ContinuePrinting for example) with this code :
>
>  dim ok As Boolean
> =20
>  // MACINTOSH
>  #IF TargetMacOS
>  #IF TargetCarbon
>  Declare SUB PMError Lib "CarbonLib" () as Integer
>  #ELSE
>  Declare SUB PMError Lib "InterfaceLib" alias "PrError" () as Short
>  #ENDIF
>  ok =3D (PMError() =3D 0)
> =20
>  // WINDOWS
>  #ELSE
>  ok =3D true  // Don't know if it does exist an appropriate declare
>  #ENDIF
> =20
>  RETURN ok
-- 
Carlo
_______________________________________________
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>

Reply via email to