Solved

Check for spooling of printer

Posted on 2004-04-15
5
1,043 Views
Last Modified: 2012-06-22
Hi,

I have a module which converts a crystal report to a PDF file using PDF995 as printer. After that the module proceed to do some other processing on this PDF file. The problem occurs while the module starts to do some other processing while the PDF is still spooling and its not generated yet. Is there a way to check the spooling to PDF995 printer? whether it is finished or not so that the module will only proceed after spooling is completed?

Kirti
0
Comment
Question by:kirtirani
5 Comments
 
LVL 17

Accepted Solution

by:
zzzzzooc earned 75 total points
ID: 10848684
If it acts as a printer, regular Printer API may apply but I'm not sure.

Some articles to look over..

"Getting the status of the selected printer from Visual Basic"
http://www.merrioncomputing.com/Programming/PrintStatus.htm

"Reading the jobs in the print queue from Visual Basic"
http://www.merrioncomputing.com/Programming/PrintJob.htm

"Monitoring a print queue from Visual Basic"
http://www.merrioncomputing.com/Programming/WatchPrinter.htm
0
 
LVL 4

Assisted Solution

by:JpmSoft
JpmSoft earned 75 total points
ID: 10904399

Check this out!

http://www.codeguru.com/Cpp/W-P/printing/article.php/c5893/

This is a printer port with a special function to be used from visual basic...
It was designed to solve an issue like yours...

Good Luck
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

685 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