Message 1 of 9
Printing with iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to print via iLogic. In my printer driver there is a ARCH D page size that I would like to use. I can get my code to work with Tabloid or Letter size, but not the ARCH D.
Here is what I see in my printer settings.
And this is the code I have so far.
Dim oDrgDoc As DrawingDocument oDrgDoc = ThisApplication.ActiveDocument ' Set reference to drawing print manager' DrawingPrintManager has more options than PrintManager' as it's specific to drawing document Dim oDrgPrintMgr As DrawingPrintManager oDrgPrintMgr = oDrgDoc.PrintManager 'Set the printer name. Either Change this to match the system printer name, or change the system printer to this name '(comment this line to use Default printer Or assign another one). oDrgPrintMgr.Printer = "PDF" oPrintMgr = ThisApplication.ActiveDocument.PrintManager 'oPrintMgr.ColorMode = kPrintGrayScale oPrintMgr.ColorMode = kPrintColorPalette 'oPrintMgr.Orientation = kPortraitOrientation oPrintMgr.Orientation = kLandscapeOrientation oPrintMgr.PaperSize = kPaperSizeArchD 'oPrintMgr.PaperHeight = 36 'oPrintMgr.PaperWidth = 24 oPrintMgr.ScaleMode = Inventor.PrintScaleModeEnum.kPrintBestFitScale oPrintMgr.SubmitPrint
I think the issue is the line
oPrintMgr.PaperSize = kPaperSizeArchD
I just don't know how to tell it to use "ARCH D".
Thanks