Is it possible to know when a printer is out of paper?

Johan Simons

On 23/07/2006, at 1:41 AM, Roger Clary wrote:


On Jul 22, 2006, at 4:23 PM, Arnaud Nicolet wrote:

When I send pages to a printer, I need to know if the user hits "cancel" (the one, on MacOS X, which appears in the "Printing..." window, when the data are transmitted to the printer).

Here's my test code:

Sub Test
dim g As Graphics

g=OpenPrinterDialog()

if g=nil then return
g.drawLine 0,0,g.width,g.height
end sub

Put this somewhere inside your printing loop:
      if UserCancelled then
        exit
      end if


Roger M. Clary
Class One Software
http://www.classonesoftware.com
[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>

Reply via email to