This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
Printing
Posted by:
Winger300 (---.nott.cable.ntl.com)
Date: Monday, 07-Jul-2003, 12:13:49
I cannot seem to Print anything.
The line....
iRetval = ct.Exec(ref pguidCmdGroup,ComSupport.IDM_PRINTPREVIEW,iPromptUser,ref pvaIn,ref pvaOut);
get executed, but for some reason i never see a Print dialog, and nothing prints.
If i Ctrl-N a new Internet Explorer window opens, with the document displayed, but again it wont print from Explorer.
Re: Printing
Posted by:
Winger300 (---.nott.cable.ntl.com)
Date: Monday, 07-Jul-2003, 13:33:55
IE can print using File-Print, but when i open IE from my web control, and do a File-Print it wont.
However, i have rooted out the problem to be in MSHTML.
Im using the dll i created using tblimp, using the Microsoft.mshtml interop library works fine. Solves my problem.
Thanks
Re: Printing
Posted by:
Tim (---.gotadsl.co.uk)
Date: Monday, 06-Mar-2006, 22:38:58
As I recall, this is really difficult. Two techniques on offer are equally ugly:
a) change the default printer in the registry, print, change it back.
b) find some way to automate the print dialog
I once read a Microsoft tech note on the subject but I'm not sure I can track it down quickly.
Tim