GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / PrintDialogFit Method / PrintDialogFit(Int32) Method
A unique image identifier of the GdPicture image representing the image in use.
Example





In This Topic
PrintDialogFit(Int32) Method
In This Topic
Invokes the standard Windows Print dialog box, which allows you to select additional options or settings and then to print the specified GdPicture image adjusting the picture size to the default paper size.
Syntax
'Declaration
 
Public Overloads Function PrintDialogFit( _
   ByVal ImageID As Integer _
) As Boolean
public bool PrintDialogFit( 
   int ImageID
)
public function PrintDialogFit( 
    ImageID: Integer
): Boolean; 
public function PrintDialogFit( 
   ImageID : int
) : boolean;
public: bool PrintDialogFit( 
   int ImageID
) 
public:
bool PrintDialogFit( 
   int ImageID
) 

Parameters

ImageID
A unique image identifier of the GdPicture image representing the image in use.

Return Value

true if the method has been followed successfully, otherwise false. Please use the PrintGetStat method to determine the reason for the printing failure.
Example
Printing an image with the help of standard Windows Printer Dialog.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // Open an image file. An empty string allows the control to prompt for selecting a file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("");
 
    gdpictureImaging.PrintDialogFit(imageID);
 
    // Release used resources.
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also