FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Is there a way to test when a print job is complete ?
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Is there a way to test when a print job is complete ?
Posted: Thu Jan 05, 2017 10:10 PM

To All

I have a billing program that sends its output to print either to paper or print to .pdf. My user is always committing his invoices before he confirms the print job is completed or the send to .pdf is on his desktop.

Just need a way to test that the print job is complete.

Thanks
Rick Lipkin

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Is there a way to test when a print job is complete ?
Posted: Sat Jan 07, 2017 09:22 AM
Rick,

It seems as this is what you need:
https://support.microsoft.com/en-us/kb/160129

The C code is there. Anyhow, please read it and check if that is what you are looking for.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Is there a way to test when a print job is complete ?
Posted: Sat Jan 07, 2017 03:44 PM

Antonio

Yes, I think the information from the link is what I am looking for .. I just need to know when a job from the spooler is complete or has errored. I will use the returned value of the spooler to determine if I can allow my invoices to be committed.

I am not much of a 'C' programmer, however if you could create a wrapper for the spooler functions I would be most grateful. I am sure the other FiveWin users could take advantage of that function if you wanted to add it to the FiveWin libraries.

Thanks
Rick Lipkin

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Is there a way to test when a print job is complete ?
Posted: Sat Jan 07, 2017 10:11 PM

Rick,

Have you tried PrnStatus() ?

viewtopic.php?p=176882#p176882

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion