<?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 JMP Script : save a PDF based on the user selection in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Script-save-a-PDF-based-on-the-user-selection/m-p/617678#M81718</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to save a PDF based on the user selection.&lt;/P&gt;&lt;P&gt;Do you know if it is possible to make it?&lt;/P&gt;&lt;P&gt;Example: the product selected by the user is XX, is it possible to have the product name in the PDF saved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;product = "XX";
w = Current Journal(R5);&lt;BR /&gt;w &amp;lt;&amp;lt; Set page setup( margins(0.1, 0.75, 0.1, 0.1 ), scale( 0.8 ), portrait( 0 ), paper size( "Letter" ) );
w &amp;lt;&amp;lt; save pdf( "P:\data\Suivi de tendance "produit"n.pdf" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try this program, it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone have a suggestion to help me?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:06:42 GMT</pubDate>
    <dc:creator>Sebastienlg</dc:creator>
    <dc:date>2023-06-09T16:06:42Z</dc:date>
    <item>
      <title>JMP Script : save a PDF based on the user selection</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-save-a-PDF-based-on-the-user-selection/m-p/617678#M81718</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to save a PDF based on the user selection.&lt;/P&gt;&lt;P&gt;Do you know if it is possible to make it?&lt;/P&gt;&lt;P&gt;Example: the product selected by the user is XX, is it possible to have the product name in the PDF saved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;product = "XX";
w = Current Journal(R5);&lt;BR /&gt;w &amp;lt;&amp;lt; Set page setup( margins(0.1, 0.75, 0.1, 0.1 ), scale( 0.8 ), portrait( 0 ), paper size( "Letter" ) );
w &amp;lt;&amp;lt; save pdf( "P:\data\Suivi de tendance "produit"n.pdf" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try this program, it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone have a suggestion to help me?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:06:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-save-a-PDF-based-on-the-user-selection/m-p/617678#M81718</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-06-09T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script : save a PDF based on the user selection</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-save-a-PDF-based-on-the-user-selection/m-p/617831#M81730</link>
      <description>&lt;P&gt;The following script worked for me. I changed the name of the variable to 'produit' in line 1 and added the || operators in line 9 (well, line 10, as I don't have a drive mapped as p:)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;produit = "XX";
w = Current Journal( R5 );
w &amp;lt;&amp;lt; Set page setup(
	margins( 0.1, 0.75, 0.1, 0.1 ),
	scale( 0.8 ),
	portrait( 0 ),
	paper size( "Letter" )
);
w &amp;lt;&amp;lt; save pdf( "P:\data\Suivi de tendance " || produit || "n.pdf" );
//w &amp;lt;&amp;lt; save pdf( "$DESKTOP/Suivi de tendance " || produit || "n.pdf");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:17:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-save-a-PDF-based-on-the-user-selection/m-p/617831#M81730</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-03-29T14:17:38Z</dc:date>
    </item>
  </channel>
</rss>

