CHtmlEditCtrlBase::PrintDocument

打印当前文件。

HRESULT PrintDocument( ) const; 
HRESULT PrintDocument(
   LPCTSTR szPrintTemplate 
) const;
HRESULT PrintDocument(
   bool bShowPrintDialog 
) const;

参数

  • szPrintTemplate
    打印模板的路径;如果未指定,则使用默认打印模板。

  • bShowPrintDialog
    如果为true,显示打印对话框。

返回值

返回在成功的S_OK或在失败时错误HRESULT。

备注

此方法 IDM_PRINT命令ID 发送到浏览器控件。

要求

Header: afxhtml.h

请参见

参考

CHtmlEditCtrlBase选件类

CHtmlEditCtrlBase::PrintPreview