altariamx2003
asked on
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
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
ASKER
Hi, thanks for your respond
Ok, Its possible to know if an explicit document enter and get out of the print queue????
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.
mlmcc
I don't know how to monitor the queue.
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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