<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VBA Printer options not affecting print in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/9681849#M131557</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to print the PDF file which is stored on my PC. File name and path name are known.&lt;/P&gt;&lt;P&gt;I just need help to send that PDF file to printer by setting following printer parameters,&lt;/P&gt;&lt;P&gt;1. Printer Name&lt;/P&gt;&lt;P&gt;2. Orientation&lt;/P&gt;&lt;P&gt;3. Paper Size&lt;/P&gt;&lt;P&gt;4. Print on Both side (either flip on long edge or flip on short edge)&lt;/P&gt;&lt;P&gt;This I have to do it in the AutoCAD VBA only.&lt;/P&gt;&lt;P&gt;Your help is highly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 07:19:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-10T07:19:05Z</dc:date>
    <item>
      <title>VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3820963#M131532</link>
      <description>&lt;P&gt;I've noticed weird behavoir with this code to print drawings since I've started to use it, but I've never really tried getting to the bottom of it since it not usually a problem. The problem is I'll set certain options and then they aren't applied to the print job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if I'm doing something wrong, but this code I found doesn't want to change the paper size and color options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When set it to use 11x17 paper it will print 8.5x11 which is the default size for the printer. So if I change the printer options to default to 11x17 it will print with 11x17. Changing the color between color, greyscale, and blackandwhite don't affect the prints either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also is there a way to detect the default printer since I noticed when I "printed" a pdf manually and then tried this script it used the pdf printer and not the default printer, which I would always want to use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub Single_Print_11x17()

    Dim oPrintMgr As PrintManager
    Set oPrintMgr = ThisApplication.ActiveDocument.PrintManager

    If MsgBox("Using default printer """ &amp;amp; oPrintMgr.printer &amp;amp; """ with 11x17 paper.  Do you want to continue?", vbYesNo + vbQuestion) = vbNo Then Exit Sub

    Print_doc printer:=oPrintMgr.printer, paper:=kPaperSize11x17, black_white:=True

End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If you notice that i'm not using two of the arguements in the function that are passed, that's because they don't appear to affect anything so I just left some of it hard coded. When/if I can get the different options working I'll start using the arguements more since I have plans.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Function Print_doc(ByVal printer As String, ByVal paper As String, ByVal black_white As Boolean)
    If ThisApplication.ActiveDocument.DocumentType &amp;lt;&amp;gt; kDrawingDocumentObject Then Exit Function

    Dim oDrgDoc As DrawingDocument
    Set oDrgDoc = ThisApplication.ActiveDocument

    Dim oDrgPrintMgr As DrawingPrintManager
    Set oDrgPrintMgr = oDrgDoc.PrintManager

    'choose printer works
    oDrgPrintMgr.printer = printer
    'choose sheets works
    oDrgPrintMgr.PrintRange = kPrintAllSheets
    'choose size doesn't work
    oDrgPrintMgr.PaperSize = kPaperSize11x17
    'choose scale works
    oDrgPrintMgr.ScaleMode = kPrintBestFitScale
    'color/black &amp;amp; white don't work
    oDrgPrintMgr.ColorMode = kPrintGrayScale
    oDrgPrintMgr.AllColorsAsBlack = black_white
    oDrgPrintMgr.SubmitPrint
End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd love to get all these options working since I want to be able to select size and color options when using my print scripts.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:12:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3820963#M131532</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2013-04-02T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3821327#M131533</link>
      <description>&lt;P&gt;the paper size is always printer driver problem. it is very difficult to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to take out this line. and test color change.&lt;/P&gt;&lt;P&gt;oDrgPrintMgr.ColorMode = kPrintGrayScale&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 20:13:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3821327#M131533</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2013-04-02T20:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3821962#M131534</link>
      <description>&lt;P&gt;I don't see why paper size should be an issue if Inventor can pass the information along perfectly when you use the default the print dialog. One would think on the VBA side of things setting the paper size should do exactly the same thing as it would in the printer dialog. Also taking out that line doesn't affect the color of the print at all.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 13:53:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3821962#M131534</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2013-04-03T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3872778#M131535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I agree that the result through the API should be the same as from the Print Dialog.&lt;/P&gt;
&lt;P&gt;Can you reproduce it with a free software printer? e.g. "Microsoft XPS Document Writer" - would be easier to test with something like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I can imagine why there would be discrepencies between the API and the UI behaviour.&lt;/P&gt;
&lt;P&gt;When you are clicking on the "Properties" button in the UI then the printer driver's own UI will be shown (same in all programs on the system), not an Inventor specific one, and maybe that behaves fine whereas when trying to set up the same programmatically something goes wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this is something that could be looked into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 12:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3872778#M131535</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2013-04-16T12:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3873389#M131536</link>
      <description>&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;I would just try to run this portion with the exact name of the default printer and see if your options are getting through:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub TrinityPrint()
    Dim oApp As Application
    Set oApp = ThisApplication

    If oApp.ActiveDocument.DocumentType = kDrawingDocumentObject Then
        Dim oDrgDoc As DrawingDocument
        Set oDrgDoc = oApp.ActiveDocument
        Dim oDrgPrintMgr As DrawingPrintManager
        Set oDrgPrintMgr = oDrgDoc.PrintManager
            With oDrgPrintMgr
                .Printer = "\\ESSPOOL11\07RI7001BWD3255"
                .AllColorsAsBlack = True
                .ColorMode = kPrintGrayScale
                .ScaleMode = kPrintBestFitScale
                .PaperSize = kPaperSize11x17
                .PrintRange = kPrintAllSheets
                .Orientation = kLandscapeOrientation
                .RemoveLineWeights = False
                .SubmitPrint
            End With
    End If
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;If they are then you can do validation checks to insure it always gets selected and used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Public Sub TrinityPrint()
    Dim oApp As Application
    Set oApp = ThisApplication

    If oApp.ActiveDocument.DocumentType = kDrawingDocumentObject Then
        Dim oDrgDoc As DrawingDocument
        Set oDrgDoc = oApp.ActiveDocument
        Dim oDrgPrintMgr As DrawingPrintManager
        Set oDrgPrintMgr = oDrgDoc.PrintManager
        
        Dim StrPrinters As Variant, x As Long
        StrPrinters = ListPrinters
        
        If IsBounded(StrPrinters) Then
            For x = LBound(StrPrinters) To UBound(StrPrinters)
            
                'Look for the printer
                If InStr(StrPrinters(x), "3255") Then
                    Dim MainPrinter As String
                    MainPrinter = StrPrinters(x)
                    Debug.Print StrPrinters(x)
                End If
            Next x
        Else
            MsgBox ("No Printers Installed")
            Exit Sub
        End If
        
        'Print if \\ESSPOOL11\07RI7001BWD3255 found
        If InStr(MainPrinter, "3255") Then
            With oDrgPrintMgr
                .Printer = MainPrinter
                .AllColorsAsBlack = True
                .ColorMode = kPrintGrayScale
                .ScaleMode = kPrintBestFitScale
                .PaperSize = kPaperSize11x17
                .PrintRange = kPrintAllSheets
                .Orientation = kLandscapeOrientation
                .RemoveLineWeights = False
                .SubmitPrint
            End With
        Else
            MsgBox ("07RI7001BWD3255 Printer Not Installed On Any Spool")
            Exit Sub
        End If
    End If
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;As I had problems with printeres being installed on the wrong spool or being named slightly diffrent because of it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 20:30:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3873389#M131536</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-04-16T20:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3873823#M131537</link>
      <description>&lt;P&gt;I tried using my normal printer, a pdf "printer", and the MS xps "printer" and they all ended up color and I know the pdf was the wrong size. So it just appears the options aren't doing anything and the printers default options are used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name"&gt;&lt;A target="_self" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/341185"&gt;&lt;SPAN class="login-bold"&gt;jdkriek&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; thanks for the additional code to find printers but thankfully our printer here never changes so I can just leave it hardcoded.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 11:26:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3873823#M131537</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2013-04-17T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3874016#M131538</link>
      <description>&lt;P&gt;Interesting. Did you run my first script? I've found that sometimes user-defined functions don't always return what we think they should. I have about 6 diffrent regular printers and a few diffrent document or PDF printers and the options work fine on them all everytime.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 14:09:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3874016#M131538</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-04-17T14:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3874165#M131539</link>
      <description>&lt;P&gt;may i know the model of printers?&lt;/P&gt;&lt;P&gt;my code only works in HP not SHARP. i dont have any answers from inventor vendor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2013 15:47:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3874165#M131539</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2013-04-17T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3875223#M131540</link>
      <description>&lt;P&gt;Our main printer is a KONICA MINOLTA C360SeriesPCL and I did try printing using the code you posted with the same results as normal.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 14:35:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3875223#M131540</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2013-04-18T14:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3878433#M131541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&lt;A id="link_13e357a22c2" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1041683" target="_self"&gt;pball&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can I know your orignal problem is solved or not? &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 06:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3878433#M131541</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-04-23T06:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3878642#M131542</link>
      <description>&lt;P&gt;I am still having these issues and nothing suggested here or else where has helped.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 11:38:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3878642#M131542</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2013-04-23T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3882322#M131543</link>
      <description>&lt;P&gt;hi, I have this issues&amp;nbsp;on inventor 2010 and 2013. no answer or fix from both autodesk and synergis. the sharp printer never get paper size right&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:50:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3882322#M131543</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2013-04-23T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3882339#M131544</link>
      <description>&lt;P&gt;Thanks for the info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like the problem is printer specific. Correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you experience the same problem when trying to print programmatically from other programs using that printer - e.g. Excel or Word - does this only happen with Inventor?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3882339#M131544</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2013-04-23T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3882569#M131545</link>
      <description>&lt;P&gt;Sub UsePrintErrors()&lt;/P&gt;&lt;P&gt;Dim ws As Worksheet&lt;/P&gt;&lt;P&gt;Set ws = Application.ActiveSheet&lt;/P&gt;&lt;P&gt;ws.PageSetup.PaperSize = xlPaperLedger &amp;nbsp;&lt;/P&gt;&lt;P&gt;ws.PrintOut Copies:=1, Collate:=True&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi, i tried code above on excel vba. it works on letter size paper not ledger. I can print on ledger size paper on GUI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:41:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3882569#M131545</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2013-04-23T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3883190#M131546</link>
      <description>&lt;P&gt;I'm not able to try any other types of printers so I can't really confirm or deny that. Though using a pdf printer didn't change the results of the size and color options not working.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 11:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3883190#M131546</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2013-04-24T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3926896#M131547</link>
      <description>&lt;P&gt;solved problem. I change printer's driver. I also use 11x17 paper size instead of ledge paper size. it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after few testing......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I admin that printer is the reason. nothing to do with autodesk inventor?!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks all.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 18:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/3926896#M131547</guid>
      <dc:creator>skyngu</dc:creator>
      <dc:date>2013-05-17T18:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/5894163#M131548</link>
      <description>Maybe adobe is just messed up then? I run into the same problem with my paper sizes changing in the dialog, and my rule just following what the manual dialog says, rather than what my code tells it to.</description>
      <pubDate>Thu, 05 Nov 2015 14:04:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/5894163#M131548</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-11-05T14:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/7548863#M131549</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that it's an old post but I was also struggling with this problem.&lt;/P&gt;
&lt;P&gt;We have a Canon IPF820. The macro's (vba inventor) I use to plot don't recognize the standard form:&lt;/P&gt;
&lt;P&gt;kPaperSizeA2, kPaperSizeA1...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just found out a way, working for me, using this solution :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;kPaperSizeCustom&lt;/STRONG&gt; and the true dimensions of the form (cm)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case "A2"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.Printer = aPLT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.ScaleMode = kPrintBestFitScale&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperSize = &lt;STRONG&gt;kPaperSizeCustom&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperHeight = 59.4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperWidth = 42&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case "A1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.Printer = aPLT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.Rotate90Degrees = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.ScaleMode = kPrintBestFitScale&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperSize = kPaperSizeCustom&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperHeight = 59.4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperWidth = 84.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Case "A0"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.Printer = aPLT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.ScaleMode = kPrintBestFitScale&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperSize = kPaperSizeCustom&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperHeight = 118.9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPM.PaperWidth = 84.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 09:30:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/7548863#M131549</guid>
      <dc:creator>^_^clovis^_^</dc:creator>
      <dc:date>2017-11-16T09:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/8372230#M131550</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;Do you know whether Autodesk solve the API issue where the PrintManager doesn't change the PaperSize correctly? It only uses the default printer size (the one by default on the Windows Devices and Printers). I have this issue and it happens with a printer and a plotter.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 20:58:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/8372230#M131550</guid>
      <dc:creator>sergio_duran</dc:creator>
      <dc:date>2018-10-31T20:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Printer options not affecting print</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/8373302#M131551</link>
      <description>&lt;P&gt;My understanding is that &lt;STRONG&gt;Printer Drivers&lt;/STRONG&gt; can create &lt;STRONG&gt;custom pages&lt;/STRONG&gt; in the &lt;STRONG&gt;Printer Options&lt;/STRONG&gt; dialog without exposing the various options properly for programmatic access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best (only?) way to&amp;nbsp;figure out&amp;nbsp;if indeed &lt;STRONG&gt;Inventor&lt;/STRONG&gt; is doing something wrong (which I think is just using standard &lt;STRONG&gt;Windows API&lt;/STRONG&gt;'s to interact with the various &lt;STRONG&gt;printers&lt;/STRONG&gt;) is to check if you can achieve what you want &lt;STRONG&gt;programmatically&lt;/STRONG&gt; from another application.&lt;/P&gt;
&lt;P&gt;I have not seen evidence of that in this thread, though it's possible&amp;nbsp;&lt;SPAN&gt;I missed&amp;nbsp;&lt;/SPAN&gt;someone mentioning it. So it's still not clear where the error lies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please test printing &lt;STRONG&gt;programmatically&lt;/STRONG&gt; to the same printer in the same format from another app, like an Excel script or anything, and see if it's working from there or not?&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 11:20:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-printer-options-not-affecting-print/m-p/8373302#M131551</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2018-11-01T11:20:11Z</dc:date>
    </item>
  </channel>
</rss>

