Share via


IPrintManagerTemplatePrinter::drawPreviewPage method

Called by print template to draw a page image to a bitmap and then send the bitmap to a print dialog helper.

Syntax

HRESULT drawPreviewPage(
  [in] IDispatch *pElemDisp,
  [in] long      nPage
);

Parameters

  • pElemDisp [in]

  • nPage [in]

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

IDL

Mshtml.idl

See also

IPrintManagerTemplatePrinter