Having generated a number of HTML files I was faced with printing them. ExecWB Method void ExecWB (OLECMDID, OLECMDEXECOPT. I am writing a web application for IE9 and I need to open the Print function PrintPreview() { var OLECMDID = 7; /* OLECMDID values: * 6. PrinterName); (ID_PRINT, EXECOPT_DONTPROMPTUSER.

Author: Shaktir Meztiran
Country: Rwanda
Language: English (Spanish)
Genre: Video
Published (Last): 8 November 2009
Pages: 433
PDF File Size: 15.78 Mb
ePub File Size: 13.81 Mb
ISBN: 848-8-15899-128-6
Downloads: 60294
Price: Free* [*Free Regsitration Required]
Uploader: Goltisho

Articles Quick Answers Messages Use my saved content filters. Please Sign up or sign in to vote.

This works but is crude as each document produces a print dialog that the user has to interact with. So far I’ve found many trying exefwb do similar things but no answers. Setting the default printer isn’t an acceptable option as that will affect all applications.

Execwb olecmdid print pdf

I don’t see where the templateprinter in the print template allows selecting the printer and can find no way to trap any event from the browser’s print dialog. I’m stuck, anyone have an idea?


Hi, I just had to do exactly this in C today. In my code i had to print a bundle of documents in all kind of formats, I’ve added below the relevant bits. I could not find anyway to do this without changing the default printer. I just made sure I changes the default for as little time as necessary.

Here is my code: I have derived the WebBrowser control and added my own Print method. Properties[ ” ReturnValue” ]. Thanks Valery, but as I mentioned in my post setting the default printer isn’t an acceptable option in my case. The user could navigate away from my app while the default printer is changed.

Valery Possoz Dec I’ve got the same problem an another thing I have been looking at for my application is replacing the webbrowser control by an open source. Add your solution here.

Treat my content as plain text, not as HTML. Existing Members Sign in to your account.

Printing from Internet Explorer | Richard Siddaway’s Blog

This email is in use. Do you need your password? When answering a question please: Read the question carefully. Understand that English isn’t everyone’s first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don’t tell someone to read the manual. Chances are they execcwb and don’t get it. Provide an answer or move on to the next question.


Let’s work to help developers, not make them feel stupid. Windows form C print button with printer selection option or page setting dialog. Advanced option of crystal report print size. How to excewb asp.

Print Preview Option in C.

Posted in Art