Re: How to skip Print Dialog box

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 02/09/04


Date: Mon, 9 Feb 2004 13:58:28 -0600

http://groups.google.com/advanced_group_search?q=group:microsoft.public.vb.*&hl=en&safe=off&num=50

"rpotash" <anonymous@discussions.microsoft.com> wrote
> I need to print a number of html using the following command:
>
> ShellExecute hwnd, "print", "file1.htm", vbNullString, vbNullString, SW_SHOW
> ShellExecute hwnd, "print", "file2.htm", vbNullString, vbNullString, SW_SHOW
> ShellExecute hwnd, "print", "file3.htm", vbNullString, vbNullString, SW_SHOW
>
> The problem is that Windows displays the print dialog box before printing each file.
> How can I have Windows simply print the files without displaying the dialog box?

For examples, go here:
http://groups.google.com/advanced_group_search?q=group:microsoft.public.vb.*&hl=en&safe=off&num=50

Type in what you see in caps:
EXECWB PRINT DONTPROMPTUSER

Basically, you can load the files into a WebBrowser control and use its ExecWB
method to print the page. OLECMDEXECOPT_DONTPROMPTUSER is the
cmdexecopt (parameter value) that tells it not to show that dialog box.

LFS



Relevant Pages

  • Re: Printing on a thermal printer
    ... I use a lot of Thermal Printers for labelling applications and have had the ... spooler API's and allows me to send command directly to the printer in its ... Simply set the printer name to the name of any installed windows ... actually control the printing of pages as the driver is being bypassed, ...
    (microsoft.public.dotnet.framework)
  • Re: screen print
    ... press it to capture an image of the entire ... Either one captures the image to the Windows clipboard. ... This ability to manipulate the image in a program before printing ... Go to a command prompt and issue the command ...
    (microsoft.public.windowsxp.basics)
  • Re: Generic Text Ignores my Escape codes!
    ... Printing with an application or the command prompt's COPY command? ... As near as I can tell from a quick look at some Google search results Delphi is a program development package for Windows published by Borland. ... Windows is designed so that applications and their data files don't need to generate printer model or brand specific codes to switch fonts or text attributes like boldface, italics, underline or even page orientation. ... If you are printing from a button that bypasses the print dialog, try setting the actual printer as the default printer in the Windows XP control panel. ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Generic Text Ignores my Escape codes!
    ... windows xp, it seems to ignore my font codes. ... Printing with an application or the command prompt's COPY command? ...
    (microsoft.public.windowsxp.print_fax)
  • Re: man pages text only
    ... Chris Rodgers wrote: ... > help on a command, but if I want to save the text off in a file ... > for printing on a Windows PC, how can I get plain text? ...
    (comp.unix.aix)