Compartir a través de


printPage method

Sends a page, as defined by a DeviceRect, to the printer.

Syntax

var retval = TemplatePrinter.printPage(pElemDisp);

Parameters

  • pElemDisp [in]
    Type: IDispatch

    A DeviceRect object that specifies the page to be printed.

Return value

Type: HRESULT

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

Remarks

To use this method, you must first call the startDoc method.

See the TEMPLATEPRINTER reference page for an example using the printPage method.