1. Roland Smith
  2. PowerBuilder
  3. Thursday, 1 February 2024 16:30 PM UTC

I'm printing a 2000 page report and I am wondering if it is possible to know when the printer is finished. The Print function returns when PowerBuilder has finished sending it to the print spooler.

 

John Fauss Accepted Answer Pending Moderation
  1. Thursday, 1 February 2024 17:18 PM UTC
  2. PowerBuilder
  3. # 1

Have you looked at these?

    https://learn.microsoft.com/en-us/windows/win32/printdocs/printing-and-print-spooler-functions

The EnumJobs WinAPI function might be helpful, but I have no firsthand experience with it.

This might be a question better asked on a Windows-focused forum, like StackOverflow.com. I did a search using the terms "print job completion notification" and received 35 results, but did not look through them. Might be worth a look-see.

Good luck!

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 1 February 2024 17:17 PM UTC
  2. PowerBuilder
  3. # 2

Hi Roland;

  You have of course the various PrintXxxx events to let the App know when the Print Starts, Ends and page currently being printed. Tese can be used  for monitoring & then provide feedback that to the App user (if required). However, that's only while the App printing is being sent to the O/S Print Spooler. Once that completes, the PB App is not updated by the Print Spooler on it's part in the actual hard copy printing operations.

Regards .. Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.