User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,655 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,790 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 5749 | Replies: 5 | Solved
Reply
Join Date: Dec 2006
Location: Tokyo, Japan
Posts: 56
Reputation: millanskie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
millanskie's Avatar
millanskie millanskie is offline Offline
Junior Poster in Training

Help How to delete/cancel print job already in queue

  #1  
Mar 3rd, 2007
Hi to all,

I have a program that will print a file automatically after downloading it from the web server, the problem is how can i delete or cancel print job already in the printer queue... i already try
printer.killdoc
but it does not delete or cancel job that are already sent in the printer queue.

can anyone help me about this problem


thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2006
Posts: 692
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 94
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Master Poster

Re: How to delete/cancel print job already in queue

  #2  
Mar 3rd, 2007
Hi,

After
Printer.KillDoc

Give :

Printer.EndDoc.

This Ensures current printing Document is Terminated.

To remove all from Queue, Put in a loop and Check.


Regards
Veena
Reply With Quote  
Join Date: Dec 2006
Location: Tokyo, Japan
Posts: 56
Reputation: millanskie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
millanskie's Avatar
millanskie millanskie is offline Offline
Junior Poster in Training

Re: How to delete/cancel print job already in queue

  #3  
Mar 3rd, 2007
Hi Veena,

I already try that but still it does not work... and by the way what I want to delete or cancel is already in the printer queue 1 page only, can it be deleted or canceled or any possible way to do that...

if it is not too much for you, can you give me a simple example for this...

thanks Veena


Regards,

millanskie
Reply With Quote  
Join Date: Dec 2006
Location: Tokyo, Japan
Posts: 56
Reputation: millanskie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
millanskie's Avatar
millanskie millanskie is offline Offline
Junior Poster in Training

Re: How to delete/cancel print job already in queue

  #4  
Mar 4th, 2007
one more thing, when i send file in the printer queue I already apply
Printer.endDoc
the reason for that is I really want it to be printed.... But for some reason like printer error or something that i need to cancel the printing
Printer.KillDoc
is no longer applicable... do you know some solution for this.... any idea.

Thanks
Reply With Quote  
Join Date: Nov 2006
Posts: 692
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 94
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Master Poster

Re: How to delete/cancel print job already in queue

  #5  
Mar 5th, 2007
Hi,

After sending it to Printer Queue, u cant write KillDoc, as u said, it is no longer applicable.
and more over, KillDoc works for BackGround printing Enabled only, that is the application Starts printing immedialtely after u give "Printer.Print" statement. that means it will not wait for .NewPage or .EndDoc.
Printer is in the same system or is it a network printer?

Regards
Veena
Reply With Quote  
Join Date: Dec 2006
Location: Tokyo, Japan
Posts: 56
Reputation: millanskie is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
millanskie's Avatar
millanskie millanskie is offline Offline
Junior Poster in Training

Re: How to delete/cancel print job already in queue

  #6  
Mar 5th, 2007
Hi,

anyway thanks for your help, I appreciate it... I had try searching in goolgle and I've found something in this site http://www.mvps.org/vb about printer info and I already download thier sample program, I hope I can get the answer I am looking for....

Again thanks Veena for the help.


Regards

Millan
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 1:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC