CDC::EndPage 

intEndPage();

Return Value

Greater than or equal to 0 if successful; otherwise it is an error value, which can be one of the following:

  • SP_ERROR   General error.

  • SP_APPABORT   Job was ended because the application’s abort function returned 0.

  • SP_USERABORT   User ended the job through Print Manager.

  • SP_OUTOFDISK   Not enough disk space is currently available for spooling, and no more space will become available.

  • SP_OUTOFMEMORY   Not enough memory is available for spooling.

Remarks

Informs the device that the application has finished writing to a page. This member function is typically used to direct the device driver to advance to a new page.

This member function replaces the NEWFRAME printer escape. Unlike NEWFRAME, this function is always called after printing a page.

Example

See the example for CDC::StartDoc.

CDC OverviewClass MembersHierarchy Chart

See Also   CDC::StartPage, CDC::StartDoc, CDC::Escape