IGxDocumentPrinter.StartDocument

Syntax

StartDocument(JobTitle: String);

Parameters

JobTitle. Document title in the printer queue. The file name is substituted on printing to file.

Description

The StartDocument method sends the document to the printer queue.

Example

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, NullNullNull);
    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:

IGxDocumentPrinter