Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Going Nuts! Cannot change PrintManager PaperSize to 11x17.

11 REPLIES 11
Reply
Message 1 of 12
Anonymous
820 Views, 11 Replies

Going Nuts! Cannot change PrintManager PaperSize to 11x17.

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]

 

 

11 REPLIES 11
Message 2 of 12
Anonymous
in reply to: Anonymous

This used to work with earlier versions of Inventor. Stopped working in 2011.
Still not working in 2015.
Message 3 of 12
Anonymous
in reply to: Anonymous

Try 

 

oPrintMgr.PaperSize = PaperSizeEnum.kPaperSize11x17

Message 4 of 12
Anonymous
in reply to: Anonymous

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.

Message 5 of 12
Anonymous
in reply to: Anonymous

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?

Message 6 of 12
skyngu
in reply to: Anonymous

I guess it is the driver of printer causes problem.
Autodesk Inventor Professional 2019
Message 7 of 12
Anonymous
in reply to: skyngu

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. )

Message 8 of 12
skyngu
in reply to: Anonymous

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)

Autodesk Inventor Professional 2019
Message 9 of 12
Anonymous
in reply to: skyngu

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.

 

Message 10 of 12
skyngu
in reply to: Anonymous

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.

Autodesk Inventor Professional 2019
Message 11 of 12
Anonymous
in reply to: skyngu

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 

Message 12 of 12
skyngu
in reply to: Anonymous

I am lucky. we don't use inventor viewer. It saves me a lot of troubles. We used to print pdf from inventor until I downgrade version of printer driver.

good luck.
Autodesk Inventor Professional 2019

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report