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

Posted on 2008-11-13
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
    LVL 100

    Expert Comment

    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

    Hi, thanks for your respond

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

    LVL 100

    Expert Comment

    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

    Searching in this excellent webpage I found this tread:

    this is the solution to my problem

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now