我做的软件是给客户用的,客户不一定装word,我也试过用Notepad,但是效果不好,而且打不出图片。
解决方案 »
- .net2003网页打不开,怎么回事啊。
- 注册表与Shell 编程问题
- 怎样在CFormView中实现像MyIE那种标签式的界面?
- 用 ioctlsocket() 函数把 socket 设置为非阻塞方式连接,出错!!!!!!!!
- 如何让处理过的图象显示在新的窗口, 旧窗口不变
- 要做一个能输出信息的'窗口‘ 怎么做
- 找一本老书。Windows 核心编程。中英文都可以。最好有源代码。100分至谢
- ■■有没什么好的图片合并控件?能用马上结帖!!!!谢谢!!
- 下载后缀为.shtml的网页的问题,急,在线等
- 高分求教
- 关于链表问题,各位帮忙
- 请问好多消息前面都有NC,和不带NC的有什么区别,比方说WM_DESTORY和WM_NCDESTORY
函数中调用你的打印命令,因为这个时候文件的内容才被完全的加载进IE。用CHtmlView是最简单的办法,你直接重载这个函数就行了。tnsw
Symbolic constant IDM_PRINT
User interface Optional. If this parameter is set to OLECMDEXECOPT_DODEFAULT or OLECMDEXECOPT_PROMPTUSER, the Print dialog box will be displayed. If this parameter is set to OLECMDEXECOPT_DONTPROMPTUSER, no dialog box will display and the document will be sent directly to the current printer.
IOleCommandTarget::Exec parameters pvaIn VARIANT of type VT_BSTR, VT_I2, or VT_ARRAY.
If pvaIn is a VARIANT of type VT_BSTR, pvaIn specifies the path to a custom print template.If pvaIn is a VARIANT of type VT_I2, pvaIn specifies a flag indicating whether the Print Dialog should be shown; any non-zero value shows the dialog.If pvaIn is a VARIANT of type VT_ARRAY, pvaIn specifies a SAFEARRAY containing (in the following order) a header BSTR, a footer BSTR, the address of an IStream pointer for a Microsoft Outlook Express header document, an alternate URL BSTR used for Microsoft's HTML parsing and rendering engine (MSHTML) in Outlook Express, and a DWORD containing flags.May be set to NULL to use the Microsoft® Internet Explorer default print template.
pvaOut Set to NULL.
Header file mshtmcid.h
Applies to IHTMLDocument2::execCommand, IHTMLDocument2::queryCommandEnabled, IHTMLDocument2::queryCommandIndeterm, IHTMLDocument2::queryCommandState, IHTMLDocument2::queryCommandSupported, IHTMLDocument2::queryCommandValue, IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus. ResIf no template path is supplied, MSHTML will use the default print template.Minimum AvailabilityInternet Explorer 5.5 and later.
See AlsoIDM_PRINTPREVIEW, LayoutRect, DeviceRect, TemplatePrinter, HeaderFooter, dialogArguments