Going Nuts!
I am using my default printer. A Kyocera Mita-4035.
the default printer papersize is set to letter.
the API will allow me to change any property I like through the PrintManager except the Papersize property.
None of the following PaperSize settings work. Paper printed to is Letter size.
[code]
Select Case oDwg.Sheets(j).Size
Case kDDrawingSheetSize
With oPrintMgr
.PaperSize = kPaperSize11x17
'.PaperSize = kPaperSizeLedger
'.PaperSize = kPaperSizeCustom
'.PaperHeight = CM(17)
'.PaperWidth = CM(11)
.Orientation = Inventor.kLandscapeOrientation
.ScaleMode = Inventor.PrintScaleModeEnum.kPrintCustomScale
.[Scale] = 0.5
End With
'Case kEDrawingSheetSize
...
End Select
For k = 1 To G.PrintOptions.MasterCount
oPrintMgr.SubmitPrint
Next k
[/code]
Nope. No difference. Also tried to send to our Kyocera Mita KM-5035. Same issue.
I'm getting real tired of Autodesk telling me it is a Kyocera issue and Kyocera telling me it is an Autodesk issue.
Do you have code that works in VB?
If so, can you paste the code into ilogic and tick "Straight VB Code" under options in the Edit Rule Dialog?
I would agree that the driver was the issue if that were the end of if.
However:
1) If I choose to print manuallly from within Inventor 11x17 is selected and everything works fine.
2) If I set the default printer settings to 11x17 it prints to 11x17.
3) Outside of Inventor I can programmically print to 11x17 from Excel or from Visual Studio.
It is only when I try to print using the Inventor API printmanager tool that it fails to select 11x17 and prints to Letter size.
( Note: I am using Inventor VBA7 64 bit to automate the printing process not iLogic. )
well, i had similar issue as yours. I had problem with the printer Sharp MX-M620N.
I solved the problem after I used old version driver of this printer.
(using VBA 64bit macro)
We tried all the 64 bit drivers.
The only work around I found which is ugly is to create a second network printer on each PC through TCIP that points to the same physical network printer.
I give it a new name such as "Inventor Ledger" then set the papersize as ledger by default.
In code when I need a B-size I point to the new printer with printmanager.printer. When I need letter size in inventor I point to the Kyocera.
It is a really slow kludge and I haven't tried it in production yet, but it appears to function in development for now.
print in pdf first, then print into paper? That is what I used to do.
do you have full access on the printer? worth a try.
Thank you for the thoughts.
I have experience doing automated printing from Inventor Viewer to post script files and then using the free Ghostscript dll to combine then into a single post script.... and then convert it into a single PDF. It is round about and requires GhostScript 9.10 to be installed on each machine.
I suppose I could try to leverage that and send the single PS file to the printer. Not sure it's worth the trouble though.
The more complex the plumbing the easier it is to gum up the works.
- Montgomery Scott Starfeet Engineer
Can't find what you're looking for? Ask the community or share your knowledge.