NewPage;
The NewPage method prints a new page of the document.
Sub Main;
Var
Image: IGxImage;
Printer: IGxDocumentPrinter;
Begin
Image := GxBitmap.FromFile("C:\Image.bmp");
Printer := GxPrinters.DefaultPrinter As IGxDocumentPrinter;
Printer.StartDocument("Bmp_Test");
Printer.NewPage;
Printer.Graphics.DrawImageTransparent(Image, Null, Null, Null);
Printer.EndDocument;
End Sub Main;
After executing the example the image that is loaded from the Image.bmp file is printed.
See also: