How to know if my document was successful printed using visual basic 2005

Posted on 2008-11-13
Medium Priority
Last Modified: 2012-05-05
First of all, Im sorry for my english jejejejeje

Let me try to explain my problem

I did a little aplication in VB2005, this aplication save several data about contacts, customers, etc...., and using this data you can generate a lot of documents with crystal reports, and send them to print using the network printers or locally.

My boss need an upgrade of this program, he needs that any document send it to print has a consecutive number (to keep a record) and save this number in a database, but this number will be added only when the print operation was successful.

Do you know how can I catch with visual basic 2005 the event that happend when the document was printed??????

I know that this is a stupid question, sorry for that

Best Regards

Carlos Alvarez
Question by:altariamx2003
  • 2
  • 2
LVL 101

Expert Comment

ID: 22956804
Not a stupid question.

This has been asked in the past.  As I recall there is really no way to capture that the printing was successful.

One way to try this would be to use 2 columns.
DatePrinted and the print number to each record.

In that way if necessary you could recreate one that failed by using the unique combination to select the records.


Author Comment

ID: 22960259
Hi, thanks for your respond

Ok, Its possible to know if an explicit document enter and get out of the print queue????

LVL 101

Expert Comment

ID: 22962878
You could monitor the print queue (assuming you know which one).  Not sure what the Crystal file name would be in the queue.

I don't know how to monitor the queue.


Accepted Solution

altariamx2003 earned 0 total points
ID: 22964806
Searching in this excellent webpage I found this tread: http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_22476735.html?sfQueryTermInfo=1+win32_printjob

this is the solution to my problem

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ability to add structure to Visio diagrams using containers, lists and callouts is one of my favorite features in Visio 2010. In this article I’ll describe a mashup of containers and lists that meet a real-world need. Prior to reading this ar…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question