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

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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

altariamx2003Author Commented:
Hi, thanks for your respond

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

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.

altariamx2003Author Commented:
Searching in this excellent webpage I found this tread:

this is the solution to my problem

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.