Re: How to skip Print Dialog box
From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 02/09/04
- Next message: Atley: "Trying to run a DOS command with VB.net 2003"
- Previous message: Chris Hyatt: "VB App requests Office 2k cd when form with data grid is launched"
- In reply to: rpotash: "How to skip Print Dialog box"
- Next in thread: Rich Potash: "Re: How to skip Print Dialog box"
- Reply: Rich Potash: "Re: How to skip Print Dialog box"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Atley: "Trying to run a DOS command with VB.net 2003"
- Previous message: Chris Hyatt: "VB App requests Office 2k cd when form with data grid is launched"
- In reply to: rpotash: "How to skip Print Dialog box"
- Next in thread: Rich Potash: "Re: How to skip Print Dialog box"
- Reply: Rich Potash: "Re: How to skip Print Dialog box"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|