Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here




I would like to verify that a report (MS Access in this case) has actually printed.  This is in a setting with Windows XP on a Novell network.

So far I have been unable to raise a valid event handle from FindFirstPrinterChangeNotification although I have tried it both with and without a pointer to a PRINTER_NOTIFY_OPTIONS structure.  The function is being passed a valid printer handle.


Public Declare Function apiFindFirstPrinterChangeNotificationLong Lib "winspool.drv" Alias "FindFirstPrinterChangeNotification" _
  (ByVal hPrinter As Long, ByVal fdwFlags As Long, ByVal fdwOptions As Long, ByVal lpPrinterNotifyOptions As Long) As Long

Public Sub WaitForPrinterEvent(ByVal hPrinter As Long)

'Call InitialiseNotifyOptions    '\\ initialize structures
'mEventHandle = apiFindFirstPrinterChangeNotificationLong(hPrinter, PRINTER_CHANGE_JOB, 0, varPtr(PrintOptions))   '\\ ptr to PRINTER_NOTIFY_OPTIONS structure

mEventHandle = apiFindFirstPrinterChangeNotificationLong(hPrinter, PRINTER_CHANGE_JOB, 0, 0)

If mEventHandle <> INVALID_HANDLE_VALUE Then
'do stuff here...
End If

End Sub

Is this an insurmountable network issue?  Should I consider an alternative approach?  Any suggestions on how to register a printer event will be welcome.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close