PaperSize not taking

PaperSize not taking

Anonymous
Not applicable
440 Views
4 Replies
Message 1 of 5

PaperSize not taking

Anonymous
Not applicable
We're using Inventor 2010 and I am having trouble getting a drawing to print to the paper size I specify in my code. I print like this:

dwgPrintMgr.Printer = prn.getPath()
dwgPrintMgr.PrintRange = PrintRangeEnum.kPrintAllSheets
dwgPrintMgr.PaperSize = PaperSizeEnum.kPaperSize11x17
dwgPrintMgr.Orientation = PrintOrientationEnum.kLandscapeOrientation
dwgPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale
dwgPrintMgr.NumberOfCopies = 1
dwgPrintMgr.SubmitPrint()

but the print comes out as 8.5x11 every time (which is the default size on the printer). If I manually print from Inventor and choose 11x17 paper size, it works fine. Has anyone else seen this? Any idea what is happening?

Thanks.
0 Likes
441 Views
4 Replies
Replies (4)
Message 2 of 5

ACEDeSmedt
Advocate
Advocate
Have you tried to set first the orientation and that the papersize ?

I know, when you change some settings (like the printer name) the papersize changes.

Try to step trough the code and check add a watch for the papersize.

Regards,
Klaas De Smedt
=================================
If this is the solution, push the solution button 😉 (and maybe some kudos)
Autodesk Product Design Suit - Ultimate edition (Subscription)
0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks for the reply. Great idea! Unfortunately, it didn't help.

I wonder if it has something to do with using PaperSizeEnums instead of the real paper size, but this is the only option with Inventor (I believe).
0 Likes
Message 4 of 5

ACEDeSmedt
Advocate
Advocate
Have you tried using other paper sizes?
There is also an option to turn 90 degrees?
Try printing on an other printer like a PDF printer (http://www.primopdf.com/)
It cloud be your printer driver (maybe, look if there is an update for your printer driver)

Regards,
Klaas De Smedt
=================================
If this is the solution, push the solution button 😉 (and maybe some kudos)
Autodesk Product Design Suit - Ultimate edition (Subscription)
0 Likes
Message 5 of 5

Anonymous
Not applicable
You might have a look at this thread. It could be the same issue
http://discussion.autodesk.com/forums/thread.jspa?messageID=6219550

--
KWiKMcad
Kent Keller
"TomMam" wrote in message news:6256324@discussion.autodesk.com...
We're using Inventor 2010 and I am having trouble getting a drawing to print
to the paper size I specify in my code. I print like this:

dwgPrintMgr.Printer = prn.getPath()
dwgPrintMgr.PrintRange = PrintRangeEnum.kPrintAllSheets
dwgPrintMgr.PaperSize = PaperSizeEnum.kPaperSize11x17
dwgPrintMgr.Orientation = PrintOrientationEnum.kLandscapeOrientation
dwgPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale
dwgPrintMgr.NumberOfCopies = 1
dwgPrintMgr.SubmitPrint()

but the print comes out as 8.5x11 every time (which is the default size on
the printer). If I manually print from Inventor and choose 11x17 paper
size, it works fine. Has anyone else seen this? Any idea what is
happening?

Thanks.
0 Likes