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

Hi
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
altariamx2003Asked:
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.

mlmccCommented:
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.

mlmcc
0
altariamx2003Author Commented:
Hi, thanks for your respond

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

0
mlmccCommented:
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.

mlmcc
0
altariamx2003Author Commented:
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
0

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.