Home > BSPrinter documentation > Reference

GetDocFirstPageIndex Method


Applies to: PrintPreview control , IPrinterEx object


Return Type: Long
Parameter(s):
In          Optional          ReferencePageIndex          As Variant


Description:

Returns the page index where a document starts.

Note:

A report can have more than one document.
If in the middle of the Printing routine there is an EndDoc statement, the Print Preview dialog box will show more than one document. Each document will have its page numbers, and by calling this method it is possible to get the page index of the first page of a particular document.
If the ReferencePageIndex parameter is supplied, it will return the index of the first page of the document that the page referenced by ReferencePageIndex belongs. If this parameter is omitted, the current page will be used as the reference.

See Also:

GetDocLastPageIndex method
GetDocPageCount method
GetPageNumber method
StartDoc event