次の方法で共有


CHtmlEditCtrlBase::PrintDocument

Prints the current document.

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

Parameters

  • szPrintTemplate
    Path to a print template; if none is specified, the default print template is used.

  • bShowPrintDialog
    If true, shows the Print dialog.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

This method sends the IDM_PRINT command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::PrintPreview