<?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: Select the printer when printing doc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760308#M1951120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 12:18:47 GMT</pubDate>
    <dc:creator>former_member225253</dc:creator>
    <dc:date>2016-06-17T12:18:47Z</dc:date>
    <item>
      <title>Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760306#M1951118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like whether it's possible to select the printer when printing word document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this moment I've something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; CREATE OBJECT gs_word 'WORD.APPLICATION'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET PROPERTY OF gs_word 'Visible' = '0' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL METHOD OF gs_word 'Documents' = gs_documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL METHOD OF gs_documents 'Open' = gs_newdoc&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING #1 = 'C:\Temp\doc2015.docx' .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; CALL METHOD OF gs_word 'ActiveDocument' = gs_actdoc .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; CALL METHOD OF gs_actdoc 'PrintOut' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL METHOD OF gs_word 'Quit' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FREE: gs_word, gs_actdoc, gs_documents, gs_newdoc .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anybody help me'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760306#M1951118</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-06-17T11:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760307#M1951119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should try to record a macro with word, so you could identify 'oWord.WordBasic.FilePrintSetup'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: set the printer value and use the option DoNotSetAsSysDefault:=1 you guess why (don't use oWorld.ActivePrinter you wont have the option and would be required to sace curent printer and reset it after completion)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760307#M1951119</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-06-17T11:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760308#M1951120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 12:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760308#M1951120</guid>
      <dc:creator>former_member225253</dc:creator>
      <dc:date>2016-06-17T12:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760309#M1951121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 12:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760309#M1951121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-17T12:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760310#M1951122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I'm not sure that 'squat' of another question comply with the rules of the forum?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 13:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760310#M1951122</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-06-17T13:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760311#M1951123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need to set the ActivePrinter to make this work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;set &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;property &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;gs_word &lt;SPAN class="L0S33"&gt;'ActivePrinter' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'PrinterName'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Add this line, before the &lt;SPAN style="color: #333333; font-size: 13.3333px;"&gt;PrintOut command.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13.3333px;"&gt;Edit: If you want user to have the option to choose the printer, then you can give a popup with a dropdown of printer names. List of printer names can be retrieved using&amp;nbsp; RSPO_LIST_FRONTEND_PRINTERS function module. Check RSPO_FRONTEND_PRINTERS_FOR_DEV for example. Once the user chooses the printer from the dropdown, pass that selected value to the ActivePrinter name.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Juwin&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Juwin Pallipat Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 13:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760311#M1951123</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-17T13:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760312#M1951124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's correct: &lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;set &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;property &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;of &lt;/SPAN&gt;gs_word &lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ActivePrinter' &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'PrinterName'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question. Once I've changed the printer, is it possible to change the printer to the previous default printer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760312#M1951124</guid>
      <dc:creator>former_member254358</dc:creator>
      <dc:date>2016-06-20T11:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select the printer when printing doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760313#M1951125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may get the current property before setting a new one. And then once the print command issued, change it back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-the-printer-when-printing-doc/m-p/11760313#M1951125</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-06-20T12:31:32Z</dc:date>
    </item>
  </channel>
</rss>

