If you need to print a page document that is larger than the page size destination you have to use the PrintFit() or PrintDialogFit() method.
Please let me know if I am missing something.
With best regards,
Unfortunately, I need to go the other way. The document might be 24x36 and I need it to print that large but it is only printing out the 8.5x11 corner portion of the document itself. I am trying to figure out a way to just print the document by the actual size of the document itself. I can't seem to find an "Auto Detect" or something to that effect. The printer will print anything up to 36x48 but I can't get the GDViewer to print anything that large. I know it is something that I am not doing but I am not sure what that might be. Thanks.
That's a quite strange behavior.
Are you able to share a photo of the resulting document with a camera?
If yes, it would be great to open a ticket on the helpdesk by attaching both photo and input document used for printing.
I can't understand how you can obtain such result. My guess is your printer is configured to print to A4 format.
You should try to use the PrintSetPaperSize() method or check with your printer dialog box that correct paper format is selected. By the way, what is the return of a subsequent call to the PrintGetStat() method?
I can't set the papersize, as there is only one size. The paper comes off a roll. The printer is a Canon iPF760. In looking at the settings after calling the PrintDialog, none of the settings are actually staying. Below is my code...
Dim oPDF As GdPicturePDF = New GdPicturePDF
Dim x As GdPicture10.GdPictureStatus = oPDF.PrintGetStat()
The PrintGetStat() call returns "OK". I will let you know that if I go in and manually set all the settings myself from the PrintDialog, it prints correctly. If I try and set the settings in code, it is not working. It spits out the partial printout. Thanks.
This is probable the point. In your code you do not define page size. Which options are you setting in the dialog box? For each you should have an equivalent in the GdPicture methods.if I go in and manually set all the settings myself from the PrintDialog, it prints correctly. If I try and set the settings in code, it is not working.
When I get into the PrintDialog, I have to go into Preferences. I change the following settings...
Color - From Color to Monochrome
Orientation - From Portrait to Landscape
Rotate Page 90 degrees - From off to on
Page Size - From Letter (8.5 x 11) to various settings (ARCH C (18 x 24), ARCH D (24 x 36) or ARCH E (36 x 48)) depending on size of document.
I have tried to find the page size settings and can not find them. Also, it appears that the color, orientation and rotate page settings are not taking. If I go into the PrintDialog after I set those, they are not changed. I changed the code from using PDF to using the GDPictureImaging as I couldn't set the height/width in inches with the PDF settings. I will attach my code below. Thanks for all your help.
Code: Select all
If sPrinter = "" Then sPrinter = oGdPictureImaging.PrintGetActivePrinter oGdPictureImaging.PrintSetActivePrinter(sPrinter) oGdPictureImaging.PrintSetCopies(1) oGdPictureImaging.PrintSetColorMode(PrinterColorMode.PrinterColorModeGray) oGdPictureImaging.PrintSetAutoRotation(True) oGdPictureImaging.PrintSetOrientation(PrinterOrientation.PrinterOrientationLandscape) oGdPictureImaging.PrintDialog()
Well if you don't specify the paper size it is normal that the printer outputs on the default A4...I have tried to find the page size settings and can not find them
There is some method in the SDK for doing that:
PrintSetUserPaperSize() <- This is probably the one you need.
Hope this helps!
Code: Select all
Who is online
Users browsing this forum: No registered users and 1 guest