StartDocument(JobTitle: String);
JobTitle. Document title in the printer queue. The file name is substituted on printing to file.
The StartDocument method sends the document to the printer queue.
Executing the example requires the Image.bmp graphic file in the root of the C disk.
Sub UserProc;
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 UserProc;
After executing the example the image loaded from the specified file is printed on the printer that is set as a default one in the operating system.
See also: