<?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: Export all control charts from By column on one page for export to powerpoint in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340915#M58930</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for them to be transposed basically. See attached picture. Because then I will export each set of 6 graphs as one jpg and insert into powerpoint. See how LOC_NAME = 00-15A has six graphs, and then the next set of six graphs is LOC_NAME = 0016A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 23:19:21 GMT</pubDate>
    <dc:creator>Lharbicht</dc:creator>
    <dc:date>2020-12-10T23:19:21Z</dc:date>
    <item>
      <title>Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340641#M58906</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script that I use to make 6 control charts for 20 separate groundwater monitoring wells using the By portion in the script. I would like to add on to the end of the script so I can print the 6 control charts for each separate monitoring location on one page in a powerpoint presentation Result in a powerpoint presentation that is 20 pages long, with 6 graphs on each page. I'm looking for some advice on where to start for this task? Here is the script I'm using to make the charts:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Control Chart Builder(
	Show Capability( 0 ),
	Variables(
		Subgroup( :SAMPLE_DATE ),
		Y(
			:Chloride,
			:Cl_TDS,
			:Sodium,
			:Total Dissolved Solids,
			:Sulphate,
			:Calcium
		),
		
	),
	By(:LOC_NAME)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:08:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340641#M58906</guid>
      <dc:creator>Lharbicht</dc:creator>
      <dc:date>2023-06-11T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340735#M58910</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recorded a Mastering JMP session a few months ago in which I demonstrate how to automatically save reports to PowerPoint (&lt;A href="https://community.jmp.com/t5/Tutorials/Sharing-Your-Results/ta-p/276306" target="_self"&gt;Mastering JMP Sharing Your Results&lt;/A&gt;, starting at 33:30).&amp;nbsp; This might be a good place to start.&amp;nbsp; Please take a look and let me know if this points you in the right direction.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 14:06:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340735#M58910</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2020-12-16T14:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340833#M58919</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I watched the video and it gave me the right info for putting the control charts in powerpoint and having them update automatically. That is definitely helpful. I have now added on to my script to save each set of my control charts as a jpg in a specific folder, and I will insert those into powerpoint as you said (with a link). However, my last piece of the puzzle involves arranging the graphs in my jpgs three graphs across and two down. Currently they are exporting 6 down, which doesn't look nice on a powerpoint slide.&amp;nbsp;See attached picture.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ccb = dt &amp;lt;&amp;lt; Control Chart Builder(
	Show Capability( 0 ),
	Variables(
		Subgroup( :SAMPLE_DATE ),
		Y(
			:Chloride,
			:Cl_TDS,
			:Sodium,
			:Total Dissolved Solids,
			:Sulphate,
			:Calcium
		),
		
	),
		SendToReport(
		Dispatch( {}, "Chloride Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Cl_TDS Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Sodium Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {},
			"Total Dissolved Solids Limit Summaries",
			OutlineBox,
			{Close( 1 )}
		),
		Dispatch( {}, "Sulphate Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Calcium Limit Summaries", OutlineBox, {Close( 1 )} )
	),
	By(:LOC_NAME)
);

for(c=1, c&amp;lt;=NItems(ccb), c++,

	thisrep = Report(ccb[c]);
	
	firstOB = thisrep[OutlineBox(1)];

	thistitle = firstOB &amp;lt;&amp;lt; getTitle;

	firstOB &amp;lt;&amp;lt; save picture ("desktop/"||thistitle);
	);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Dec 2020 16:53:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340833#M58919</guid>
      <dc:creator>Lharbicht</dc:creator>
      <dc:date>2020-12-10T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340837#M58920</link>
      <description>&lt;P&gt;Here is one of the methods that I use to create multiple columns of output&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

Nw = New Window( "Control Charts",
	Lineup Box( N Col( 2 ),
		Control Chart Builder(
			Show Capability( 0 ),
			Variables( Y( :height, :weight ) ),
			by( :age )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:11:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340837#M58920</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-10T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340884#M58923</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the idea. I changed the script a bit to include a Lineup box. At first I tried with multiple unique names ine the 'by' column. However it was putting a different sample in the second column, rather than splitting up the 6 graphs for each unique name into 2 columns of three. See attached photo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried again using only one unique value to see if it would split the six graphs into 2 columns and it exported the one unique value in a column of six graphs. It still didn't separate into 2 columns. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a portion of the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Nw = New Window( "Control Charts",
	Lineup Box( N Col( 3 ),
		Control Chart Builder(
			Show Capability( 0 ),
	Variables(
		Subgroup( :SAMPLE_DATE ),
		Y(
			:Chloride,
			:Cl_TDS,
			:Sodium,
			:Total Dissolved Solids,
			:Sulphate,
			:Calcium
		),
		
	),
		SendToReport(
		Dispatch( {}, "Chloride Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Cl_TDS Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Sodium Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {},
			"Total Dissolved Solids Limit Summaries",
			OutlineBox,
			{Close( 1 )}
		),
		Dispatch( {}, "Sulphate Limit Summaries", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Calcium Limit Summaries", OutlineBox, {Close( 1 )} )
	),by(:LOC_NAME);
);

);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've also included an example of my dataset if that helps.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:35:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340884#M58923</guid>
      <dc:creator>Lharbicht</dc:creator>
      <dc:date>2020-12-10T18:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340888#M58925</link>
      <description>&lt;P&gt;Is this what you are looking for?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cc.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28842i9ED58915BAEDE2DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="cc.PNG" alt="cc.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

Summarize( dt, bygroup = by( :LOC_Name ) );

Nw = New Window( "Control Charts", lb = Lineup Box( N Col( 2 ) ) );


For( i = 1, i &amp;lt;= N Items( bygroup ), i++,
	vlb = V List Box(
		dt &amp;lt;&amp;lt; Control Chart Builder(
			Show Capability( 0 ),
			Show control panel( 0 ),
			Variables(
				Subgroup( :SAMPLE_DATE ),
				Y( :Chloride, :Cl_TDS, :Sodium, :Total Dissolved Solids, :Sulphate, :Calcium )
			),
			show limit summaries( 0 ),
			where( :loc_name == Eval( bygroup[i] ) )
		)
	);
	lb &amp;lt;&amp;lt; append( vlb );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Dec 2020 20:03:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340888#M58925</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-10T20:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340915#M58930</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for them to be transposed basically. See attached picture. Because then I will export each set of 6 graphs as one jpg and insert into powerpoint. See how LOC_NAME = 00-15A has six graphs, and then the next set of six graphs is LOC_NAME = 0016A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 23:19:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/340915#M58930</guid>
      <dc:creator>Lharbicht</dc:creator>
      <dc:date>2020-12-10T23:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/341192#M58960</link>
      <description>&lt;P&gt;Below is a script that creates the PowerPoint output from your Example data table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ppt.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28866i59DB4BC889DEBFA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ppt.PNG" alt="ppt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// Get a list of the LOC_Name's that are in the data
Summarize( dt, bygroup = by( :LOC_Name ) );

// Create a display window to put the graphs into
Nw = New Window( "Control Charts" );

// Loop across all of the LOC_Name's creating the six control
// charts 
For( i = 1, i &amp;lt;= N Items( bygroup ), i++,

	// Create the Outline Box to hold the 6 charts
	ob = Outline Box( "Control Charts for LOC_Name=" || byGroup[i] );
	
	// Create a display box of three objects wide
	// With the 6 control charts, it will make it a 
	// 2 row 3 column output
	lub = Lineup Box( N Col( 3 ) );
	
	// Create the 6 charts
	ccb = dt &amp;lt;&amp;lt; Control Chart Builder( invisible,
		Show Capability( 0 ),
		Show control panel( 0 ),
		Variables(
			Subgroup( :SAMPLE_DATE ),
			Y(
				:Chloride,
				:Cl_TDS,
				:Sodium,
				:Total Dissolved Solids,
				:Sulphate,
				:Calcium
			)
		),
		show limit summaries( 0 ),
		where( :loc_name == Eval( bygroup[i] ) )
	);
	
	// Loop across the output pulling out the 6 Picture Boxes
	// that contains the desired output for each control chart
	// and add them to the Lineup Box
	For( k = 1, k &amp;lt;= 6, k++,
		lub &amp;lt;&amp;lt; append( Report( ccb )[Picture Box( i )] )
	);
	
	// Close the no longer needed Control Chart Builder window
	Report( ccb ) &amp;lt;&amp;lt; close window;
	
	// Add the contents of the Line Up Box to the Outline Box
	// but make it a single object so when saved to pptx it will
	// be treated as a single graph
	ob &amp;lt;&amp;lt; append( lub &amp;lt;&amp;lt; get picture );
	
	// Add the current outline box to the display window
	nw &amp;lt;&amp;lt; append( ob );
	
);

// Save the graphs to PowerPoint
nw &amp;lt;&amp;lt; save presentation( "$TEMP/myppt.pptx" );

// Display the PowerPoint output
Open( "$TEMP/myppt.pptx" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please take the time to study the script so you understand the approach I took, so you can make any adjustments needed.&amp;nbsp; The section in the Scripting Guide on Display Trees will give you the background on how I picked apart the output, and built it back into a new display format.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 20:43:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/341192#M58960</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-12-11T20:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export all control charts from By column on one page for export to powerpoint</title>
      <link>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/341589#M59050</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thank you for the script! That is perfect. I was able to modify one portion to allow all 6 graphs of each sample to save on one powerpoint slide. I really appreciate your help, and I enjoyed learning as I read through the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 15:57:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Export-all-control-charts-from-By-column-on-one-page-for-export/m-p/341589#M59050</guid>
      <dc:creator>Lharbicht</dc:creator>
      <dc:date>2020-12-14T15:57:53Z</dc:date>
    </item>
  </channel>
</rss>

