<?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 How to specify placement of JPEGs in PowerPoint in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-specify-placement-of-JPEGs-in-PowerPoint/m-p/714435#M89775</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have learned how to automatically create, insert &amp;amp; update JMP graphs into PowerPoint via jsl script (see below script &amp;amp; reference). Now, I want to be able to specify a couple more items regarding these graphs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. WHERE on the PowerPoint slide it is to be&lt;/P&gt;
&lt;P&gt;2. add a picture border to the graph in the PowerPoint slide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my current script, which virtually opens the data, makes the graph, saves it, inserts it into PPoint, and then opens the PPoint.&lt;/P&gt;
&lt;P&gt;******************************************************************************************************&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
 
dt = Open( "Blood_Pressure_Testing.jmp", invisible );
biv = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 826, 596 ),
	Show Control Panel( 0 ),
	Variables( X( :Subject ), Y( :Dose ), Color( :BP 8M ) ),
	Elements( Points( X, Y, Legend( 19 ) ) ),
	Local Data Filter( Close Outline( 1 ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				19,
				Properties(
					0,
					{gradient( {Color Theme( "Jet"(1) ), Discrete Colors( 1 )} )},
					Item ID( "BP 8M", 1 )
				),
				Properties( 1, {Marker( "Filled Diamond" )}, Item ID( "Dose", 1 ) )
			)}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "XXXXXXX" )} )
	)
);
 
Report( biv )[Outline Box( 1 )] &amp;lt;&amp;lt; Set title( "This is my title" );
 
//test comment - this works
 
Report( biv ) &amp;lt;&amp;lt; journal;
biv &amp;lt;&amp;lt; close window;
 
jour = Current Journal();
 
jour &amp;lt;&amp;lt; Save Presentation( "&amp;lt;path to save&amp;gt;" );
 
Open( "&amp;lt;path to PowerPoint" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;******************************************************************************************************&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Reference video:&lt;A href="https://www.youtube.com/watch?v=SuXqD5-yIkk" target="_blank" rel="noopener"&gt;How to Create a JMP Graphic Link and Open a PowerPoint Presentation Automatically - YouTube&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for the help!&lt;/DIV&gt;</description>
    <pubDate>Tue, 09 Jan 2024 21:59:09 GMT</pubDate>
    <dc:creator>arawlings</dc:creator>
    <dc:date>2024-01-09T21:59:09Z</dc:date>
    <item>
      <title>How to specify placement of JPEGs in PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-specify-placement-of-JPEGs-in-PowerPoint/m-p/714435#M89775</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have learned how to automatically create, insert &amp;amp; update JMP graphs into PowerPoint via jsl script (see below script &amp;amp; reference). Now, I want to be able to specify a couple more items regarding these graphs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. WHERE on the PowerPoint slide it is to be&lt;/P&gt;
&lt;P&gt;2. add a picture border to the graph in the PowerPoint slide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my current script, which virtually opens the data, makes the graph, saves it, inserts it into PPoint, and then opens the PPoint.&lt;/P&gt;
&lt;P&gt;******************************************************************************************************&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
 
dt = Open( "Blood_Pressure_Testing.jmp", invisible );
biv = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 826, 596 ),
	Show Control Panel( 0 ),
	Variables( X( :Subject ), Y( :Dose ), Color( :BP 8M ) ),
	Elements( Points( X, Y, Legend( 19 ) ) ),
	Local Data Filter( Close Outline( 1 ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				19,
				Properties(
					0,
					{gradient( {Color Theme( "Jet"(1) ), Discrete Colors( 1 )} )},
					Item ID( "BP 8M", 1 )
				),
				Properties( 1, {Marker( "Filled Diamond" )}, Item ID( "Dose", 1 ) )
			)}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "XXXXXXX" )} )
	)
);
 
Report( biv )[Outline Box( 1 )] &amp;lt;&amp;lt; Set title( "This is my title" );
 
//test comment - this works
 
Report( biv ) &amp;lt;&amp;lt; journal;
biv &amp;lt;&amp;lt; close window;
 
jour = Current Journal();
 
jour &amp;lt;&amp;lt; Save Presentation( "&amp;lt;path to save&amp;gt;" );
 
Open( "&amp;lt;path to PowerPoint" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;******************************************************************************************************&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Reference video:&lt;A href="https://www.youtube.com/watch?v=SuXqD5-yIkk" target="_blank" rel="noopener"&gt;How to Create a JMP Graphic Link and Open a PowerPoint Presentation Automatically - YouTube&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for the help!&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Jan 2024 21:59:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-specify-placement-of-JPEGs-in-PowerPoint/m-p/714435#M89775</guid>
      <dc:creator>arawlings</dc:creator>
      <dc:date>2024-01-09T21:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify placement of JPEGs in PowerPoint</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-specify-placement-of-JPEGs-in-PowerPoint/m-p/714483#M89781</link>
      <description>&lt;P&gt;You can see the easy options you have available from Scripting Index (search for presentation) or from &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/display-box-messages.shtml?os=win&amp;amp;source=application#ww2164087" target="_blank" rel="noopener"&gt;JMP Help&lt;/A&gt;. You might be able to do what you want, by building a custom window and saving that as an image to the powerpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually I just use JMP to create report images and then I have Python script (parametrized) which I call using Run Program to create my powerpoint from those images (I don't use JMP's Python Integration as it, is in my opinion, a nightmare to get working).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 05:48:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-specify-placement-of-JPEGs-in-PowerPoint/m-p/714483#M89781</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-01-10T05:48:33Z</dc:date>
    </item>
  </channel>
</rss>

