Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Was The Report Run or Abandoned?
Message
 
To
16/10/2001 12:11:41
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00568881
Message ID:
00569108
Views:
31
>>>There is probably an API call that you can make. A job may exist in the queue, but that still doesn't mean it printed.
>>
>>A search at http://support.microsoft.com on VFP, and a search string of "adsi and stewart" should bring up a KB article on print queue manipulation using Active Directory Services Interfaces.
>
>Thanks for the reference. It still doesn't guarantee the report printed.

Still not a 100% guarantee, but you headed towards the best option in an API.

There are API calls that OpenPrinter() and EnumJobs(). In the EnumJobs if you call it with the struct or JOB_INFO_2 you will get properties that include the JobID, pUserName, pDocument, StartTime, TotalPages, Size and PagesPrinted.

Here is where it gets tricky. One can argue that just because it was sent from the spooler to the port that it doesn't mean it made it to the paper. But I think this is about the best anyone will be able to come up with.

HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform