|
-
Oct 6th, 2000, 02:53 PM
#1
Thread Starter
Member
In my desperate search for an event or a flag that will tell me when I can delete graphics files referenced in an html page being printed, I focused on the Win32 API calls GetPrinter and EnumJobs. I have tested at least four examples of VB code implementing these calls (the best of which is the “Printer Info Control” at http://www.domaindlx.com/e_morcillo/...d/printer.asp), and no matter what I do, GetPrinter always returns Printer_Info_2.cJobs = 0 and EnumJobs always returns pcReturned = 0, both of which mean “no jobs in the printer queue.” This is true even with the Epson print spooler showing one job printing and several others in the queue.
The problem might be that the Windows print spooler is usurped by my Epson Stylus Color 600 print spooler, and the Win32 API calls reference only the former, but not the latter. Consistent with this explanation is the following observation. The Windows print spooler is displayed by selecting “Start,” “Settings,” and “Printers,” and then, from the resulting “Printers” window, right-clicking “Epson Stylus Color 600” and selecting “Open” from the context menu. As I add print jobs to this printer, the jobs never appear in the Windows print spooler, but always appear in the Epson print spooler.
So I have two questions: (1) Am I right in concluding that my Epson printer software has effectively disabled the Win32 API print spooler calls such as EnumJobs and GetPrinter by usurping the Windows print spooler? (2) If so, how would one get an event or a flag that indicates when graphics files may be deleted without adversely impacting the printing of an html document that references them? As I have indicated in an earlier post, the HTMLWindow2.onafterprint event fires too soon for this purpose.
I’m running VB6 SP4 on Windows 95.
John Fritch
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|