Hi there, has anyone been able to call the print preview dialog on the wpf webbrowser control? ive tried a few methods, however they dont seem to work.
From my understanding, all i should need to do is pass a flag with the execCommand function.
Before someoene says it, yes i know the flag is incorrect, though this is as far as i have came to a solution. The reason i need this is i am creating a report in html, and using the WebBrowser to print it. The preview dialog is required so the user can setup margins etc...
From my understanding, all i should need to do is pass a flag with the execCommand function.
Code:
short flags = 0x04;
mshtml.IHTMLDocument2 doc = homeBrowser.Document as mshtml.IHTMLDocument2;
doc.execCommand("print", true, flags);