I use PrintDialogFit() method to print image on entire page. Print dialog shows and I see that for my printer paper size specified as custom size (width=20.25 inches, height=12.5 inches). I click ok but image has been printed with letter size and has not been fitted on all page.
To check printer and his driver image was saved in file and then printed from Photoshop. And result was as I expected - image was printed in specified custom size.
I use printer Kodak T-200
GDPicture.Net version 6.4.0.10
.Net Framework version 3.5
tested on Vista and XP
sample code:
Code: Select all
System.Drawing.Bitmap image; //initialized in external code
try
{
imageId = oGdPictureImaging.CreateGdPictureImageFromBitmap(image);
oGdPictureImaging.PrintDialogFit(imageId);
}
finally
{
if (imageId != 0)
{
oGdPictureImaging.ReleaseGdPictureImage(imageId);
imageId = 0;
}
}