IPrint::SetInitialPageNum method

Sets the page number of the first page of a document.

Syntax


HRESULT SetInitialPageNum(
  [in] LONG nFirstPage
);

Parameters

nFirstPage [in]

The page number of the first page.

Return value

This method can return the standard return values E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

Setting the first page to a negative number is valid. This may be useful in printing a portion of the document with page numbers that specify an offset from the usual pagination.

Not all implementations permit the initial page number to be set, as some implementations simply lack the information as to how the page number should be presented in the final output.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

DocObj.h

IDL

DocObj.idl

IID

IID_IPrint is defined as b722bcc9-4e68-101b-a2bc-00aa00404770

See also

IPrint

 

 

Show: