Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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::PrintPreview