<?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: iLogic Print Code - How to set paper size? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668366#M77726</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;I am just removing the paper size callouts since the printer defaults to 11x17. One other issue I am having is black and white versus color. I want prints to be black and white, is there a different way of calling out that option in my code? The way it is it prints color.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2019 12:18:37 GMT</pubDate>
    <dc:creator>Jason.Rugg</dc:creator>
    <dc:date>2019-03-19T12:18:37Z</dc:date>
    <item>
      <title>iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668312#M77723</link>
      <description>&lt;P&gt;I have the following iLogic code for printing, it works great other than I can not get it to print Ledger/11x17. No matter how I try setting the paper size it refuses to print anything except Letter/8.5x11. Anyone have any other suggestions on how to set paper size?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'Print Setup&lt;BR /&gt;'[&lt;BR /&gt;Dim oDrgDoc As DrawingDocument&lt;BR /&gt;oDrgDoc = ThisApplication.ActiveDocument&lt;/P&gt;
&lt;P&gt;' Set reference to drawing print manager' DrawingPrintManager has more options than PrintManager' as it's specific to drawing document&lt;BR /&gt;Dim oDrgPrintMgr As DrawingPrintManager&lt;BR /&gt;oDrgPrintMgr = oDrgDoc.PrintManager&lt;BR /&gt;' Set the printer name' comment this line to use default printer or assign another one&lt;BR /&gt;'oDrgPrintMgr.Printer = "\\kcidc2012\EngineeringSharp_Ledger"&lt;BR /&gt;'oDrgPrintMgr.Printer = "EngineeringSharp_Ledger"&lt;BR /&gt;oDrgPrintMgr.Printer = "\\kcidc2012.kciinc.net\EngineeringSharp_Ledger"&lt;/P&gt;
&lt;P&gt;'Set the paper size , scale and orientation&lt;BR /&gt;oDrgPrintMgr.ScaleMode = kCustomScale&lt;BR /&gt;oDrgPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale&lt;BR /&gt;'oDrgPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeLedger&lt;BR /&gt;oDrgPrintMgr.PaperSize = 14338&lt;BR /&gt;oDrgPrintMgr.PrintRange = kPrintCurrentSheet&lt;BR /&gt;oDrgPrintMgr.Orientation = kLandscapeOrientation&lt;BR /&gt;oDrgPrintMgr.PaperSource = 2&lt;BR /&gt;oDrgPrintMgr.AllColorsAsBlack = True&lt;BR /&gt;oDrgPrintMgr.SubmitPrint&lt;BR /&gt;']&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:02:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668312#M77723</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2019-03-19T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668321#M77724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to change the printersetting themselves.&lt;/P&gt;
&lt;P&gt;go to your paper setting of the printer and change it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668321#M77724</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-19T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668338#M77725</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt; Thanks for the suggestion but I have tried that.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668338#M77725</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2019-03-19T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668366#M77726</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;I am just removing the paper size callouts since the printer defaults to 11x17. One other issue I am having is black and white versus color. I want prints to be black and white, is there a different way of calling out that option in my code? The way it is it prints color.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:18:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668366#M77726</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2019-03-19T12:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668377#M77727</link>
      <description>&lt;P&gt;first change this:&lt;/P&gt;
&lt;PRE&gt;oDrgPrintMgr.PaperSize = kPaperSizeLetter ' or 14353&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668377#M77727</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-19T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668391#M77728</link>
      <description>&lt;P&gt;regarding the color:&lt;/P&gt;
&lt;P&gt;Color print is as follows:&lt;/P&gt;
&lt;PRE&gt;oDrgPrintMgr.AllColorsAsBlack = False&lt;/PRE&gt;
&lt;P&gt;Black and white is as follows:&lt;/P&gt;
&lt;PRE&gt;oDrgPrintMgr.AllColorsAsBlack = True&lt;/PRE&gt;
&lt;P&gt;The code works fine with me....&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:52:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668391#M77728</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-19T12:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668407#M77729</link>
      <description>&lt;P&gt;This worked or even just completely commenting out paper size altogether worked since default is 11 x 17.&lt;/P&gt;
&lt;P&gt;oDrgPrintMgr.PaperSize = PaperSizeLedger&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just need to figure out the color issue. Using: "oDrgPrintMgr.AllColorsAsBlack = True" still prints in color.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:31:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668407#M77729</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2019-03-19T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Print Code - How to set paper size?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668514#M77730</link>
      <description>&lt;P&gt;the following works fine here...&lt;/P&gt;
&lt;PRE&gt;Public Sub Main()

'Print Setup
'[
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' comment this line to use default printer or assign another one
'oDrgPrintMgr.Printer = "\\kcidc2012\EngineeringSharp_Ledger"
'oDrgPrintMgr.Printer = "EngineeringSharp_Ledger"
oDrgPrintMgr.Printer = &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #666666; cursor: text; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;"\\kcidc2012\EngineeringSharp_Ledger"&lt;/SPAN&gt;
'Set the paper size , scale and orientation
oDrgPrintMgr.ScaleMode = kCustomScale
oDrgPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale
'oDrgPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeLedger
oDrgPrintMgr.PaperSize = kPaperSizeLedger 'or 14341' kPaperSizeLetter
MsgBox (oDrgPrintMgr.PaperSize)
oDrgPrintMgr.PrintRange = kPrintCurrentSheet
oDrgPrintMgr.Orientation = kLandscapeOrientation
oDrgPrintMgr.PaperSource = 2
oDrgPrintMgr.AllColorsAsBlack = True
oDrgPrintMgr.SubmitPrint

End Sub&lt;/PRE&gt;
&lt;P&gt;what version of inventor are you using?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 12:59:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-print-code-how-to-set-paper-size/m-p/8668514#M77730</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-03-19T12:59:15Z</dc:date>
    </item>
  </channel>
</rss>

