StartDocument(JobTitle: String);
JobTitle - the document header in the print queue. The file name is substituted on printing to file.
The StartDocument method sends the document to the printer queue.
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: