PrintMultiPageImage
This method prints the document in multi-page format to an image file instead of to the physical printer.
Syntax
PrintMultiPageImage (ItemToPrint As Object, FileName As String, FileType As CROImgFileTypes)
Parameter | Description |
---|---|
ItemToPrint |
Reference to the item to print as image. |
FileName |
Path of the output image. |
FileType |
Type of the output file. For a list of supported file types, see CROImgFileTypes. |
Examples
The following sample code shows how to print a CroImage object without annotations to a multi-page TIFF image with LZW compression, which is applicable for all bit-count images, such as 1, 4, 8, and 24.
The resolution of the output image is specified by the
Resolution
property.
SrcImage.LoadFile CommonDialog1.FileName
PrintObject.PrintMultiPageImage SrcImage, CommonDialog2.FileName, CROcTIF_LZW