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.

Return Value

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

Remarks

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

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::PrintDocument