PrintPage

Description

Sends the current page to the printer or spooler and begins a new blank page in the current print job.

Syntax

PrintPage ( printjobnumber )

Argument

Description

printjobnumber

The number the PrintOpen function assigned to the print job

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs. If any argument’s value is null, PrintPage returns null.

Examples

Example 1

This example opens a print job with a new blank page, prints a bitmap on the page, and then sends the page to the printer and sets up a new blank page. Finally, the last Print statement prints the company name on the new page:

long Job


// Open a job with new blank page.

Job = PrintOpen()


// Print a bitmap on the page.

PrintBitmap(Job, "d:\PB\BITMAP1.BMP", 100,250, 0,0)


// Begin a new page.

PrintPage(Job)


// Print the company name on the new page.

Print(Job, "Sybase Corporation")

See also