Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overloading the Printer Spool

Status
Not open for further replies.

Juice05

Programmer
Dec 4, 2001
247
US
I am having a problem with an application that I created that prints out multiple Crystal reports. I am trying to print out 11 different crystal reports. these reports vary in size depending on the time of year. Some are as small as 3 pages while others may be as many as 1,200. What is happening is that during the process I get the error:

"SC3PS3Q.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created."

I cannot find an error log anywhere. I checked the event and application log and didn't find anything. I am assuming that the Printer spool is being overloaded. I was wondering if anyone has ever run into anything like this and if so, what did they do to elimate this error.
 

I will almost bet that you are on win98. Yes I have run into this problem before and to solve it I had to create a function that waited on the printer while there was a job in the printer. Once that was gone I would send the next job to the printer.

Check out the following API's

OpenPrinter
GetPrinter
SetPrinter
ClosePrinter
DeviceCapabilities


I hope this helps. Good Luck

 
Actually I am on Windows 2000. I will try this and let you know what I come up with. Thanks for the advice. You have any sample code I could reference? Thanks again.
 

Upgrade to Sp2 on your win2k if you have not already done so.

Good Luck

 
Could you please provide some sample code. I am working with this API stuff but I haven't had much experience working with them.
 

I had a problem comming up with an example for you, so I went to ms and found this to ease my woes. This should also solve your problems also. I belive that you will be able to customize this easier than my simple demo prog.

I Hope this helps. Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top