Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

stops the default printer and cancel print jobs

Posted on 1998-10-20
3
165 Views
Last Modified: 2010-04-30
I have to call MS-Dos aplication with a shell but its generates a print job. I want to stop the default printer before the shell, and then when my VB aplication get the focus cancel the MS-dos printer jobs

could you help me??
any example?

thank you,
0
Comment
Question by:coprytel
3 Comments
 

Author Comment

by:coprytel
ID: 1440778
Adjusted points to 100
0
 
LVL 14

Accepted Solution

by:
waty earned 100 total points
ID: 1440779
On solution is starting a document before shelling, then once the shell is done, abort the two documents.

Declare Function AbortDoc Lib "gdi32" Alias "AbortDoc" (ByVal hdc As Long) As Long

Printer.Print
Shell ....

Printer.KillDoc

call AbortDoc(Printer.hDC)
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1440780
Bought This Question.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 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