PrintSinglePageImage

This method prints the document as a single page image to an image file instead of to the physical printer.

Syntax

PrintSinglePageImage (ItemToPrint As Object, Path As String, BaseNumber As Long, FileType As CROImgFileTypes)
Parameter Description

ItemToPrint

Reference to the item to print as image.

Path

Path of the output image.

BaseNumber

Specifies the output file name, so that appending BaseNumber to the Path parameter forms the full file name.

FileType

Type of the output file.

For a list of supported file types, see CROImgFileTypes.

Example

The following code sample shows how to print a CroImage object without annotations to a single-page BMP image without compression. The resolution of the output image is specified by the Resolution property.


SrcImage.LoadFile CommonDialog1.FileName
PrintObject.PrintSinglePageImage SrcImage, “C:\temp”, 100, CROcBMP

The following code sample shows how to print a SrcCIDoc object without annotations.


SrcCIDoc.LoadFile CommonDialog1.FileName
PrintObject.PrintSinglePageImage SrcCIDoc, “C:\temp”, 100, CROcBMP