PrintDocument
This method prints the document on either the default printer or on the printer selected by the user in the Print dialog.
Syntax
PrintDocument (itemToPrint As Object, howToResize As RESIZEIMAGE, zoomValue As Long)
Parameter | Description |
---|---|
itemToPrint |
Reference to the object to print. |
howToResize |
Specfies how to zoom the image when printing. |
zoomValue |
The zoom value. This parameter is only taken into account when the
|
See also
Examples
The following sample code shows how to print a CroImage object without annotations,
The resize parameter is set to
FitToWidth
, so that the image uses the full width of
the paper.
SrcImage.LoadFile CommonDialog1.FileName
PrintObject.PrintDocument SrcImage, FitToWidth, 0
The following code shows how to print a CroCIDOC object without annotations
The resize parameter is set to
FitToHeight
, so that the image uses the full height of
the paper.
SrcCIDoc.LoadFile CommonDialog1.FileName
PrintObject.PrintDocument SrcCIDoc, FitToHeight, 0