This documentation is archived and is not being maintained.

CHtmlEditCtrlBase::PrintPreview 

Opens the Print Preview window for the current document using either the default print preview template or a custom template.


HRESULT PrintPreview( ) const; 
HRESULT PrintPreview(
   LPCTSTR szPrintTemplate 
) const;

Parameters

szPrintTemplate

Path to a print template.

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

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

Show: