Export (0) Print
Expand All

DrawToDC method

Deprecated. Draws the contents of the element to the specified device context.

Syntax


HRESULT retVal = object.DrawToDC(hDC);

Parameters

hDC [in]

Type: HDC

An HDC specifying the device to be drawn to, typically a printer.

Return value

Type: HRESULT

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

Remarks

As of Windows Internet Explorer 9, this method is deprecated and should not be used.

With some printers, running IHTMLElementRender::DrawToDC may cause problems. You can ensure that IHTMLElementRender::DrawToDC works properly on all printers by running IHTMLElementRender::SetDocumentPrinter method first, and then passing the modified device context to IHTMLElementRender::DrawToDC.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft