IGxDocumentPrinter.EndDocument

Syntax

EndDocument;

Description

The EndDocument method finishes sending the document to the printer print queue.

Example

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:

IGxDocumentPrinter