NewPrinterPage()

Syntax

NewPrinterPage()
Description
Creates a new empty page. The previous page is sent to the printer and can't be modified anymore. It has to be called inside a StartDrawing()/StopDrawing() block.

Parameters

None.

Return value

None.

Example

  If PrintRequester()
    If StartPrinting("Two sheets")
      If StartDrawing(PrinterOutput())
        DrawingMode(#PB_2DDrawing_Transparent)
        DrawText(10, 10, "First page !", RGB(0, 0, 0))
      
        ; Tell the printer to start a new page
        NewPrinterPage()
        
        DrawText(10, 10, "Second page !", RGB(0, 0, 0))
      
        StopDrawing()
      EndIf
      
      StopPrinting()
    EndIf
  EndIf

Supported OS

All

<- DefaultPrinter() - Printer Index - PrintRequester() ->