<?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: How to save picture by jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697912#M88339</link>
    <description>&lt;P&gt;This not possible to my knowledge. Here are the reasons:&lt;/P&gt;
&lt;P&gt;1) Images in Excel are not cell data. They are OLE objects, which you can think that images are attachments to the sheet. Images in JMP Data Table are cell data. So Excel and JMP see images differently.&lt;/P&gt;
&lt;P&gt;2) Excel probably will never understand the meaning of images in JMP.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 15:05:13 GMT</pubDate>
    <dc:creator>peng_liu</dc:creator>
    <dc:date>2023-11-14T15:05:13Z</dc:date>
    <item>
      <title>How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697226#M88274</link>
      <description>&lt;P&gt;Hi, JMPer I want to use jsl to only save the Process Capability's histogram charts without any . Is there any way to achieve it?&lt;/P&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CompleteLeopard_0-1699840025299.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58605i098B8D64B48E8BAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CompleteLeopard_0-1699840025299.png" alt="CompleteLeopard_0-1699840025299.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 01:47:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697226#M88274</guid>
      <dc:creator>CompleteLeopard</dc:creator>
      <dc:date>2023-11-13T01:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697249#M88276</link>
      <description>&lt;P&gt;If you just want those histograms and nothing else, it is most likely easiest to capture them one by one from distribution platform&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

nw_collector = New Window("",
	vlb = V List Box()
);

cols = {"NPN1", "PNP1"};

For Each({col_name}, cols,
	dist = dt &amp;lt;&amp;lt; Distribution(
		Stack(1),
		Continuous Distribution(
			Column(Eval(col_name)),
			Horizontal Layout(1),
			Vertical(0),
			Process Capability(Use Column Property Specs)
		)
	);

	lb = Report(dist)[OutlineBox(col_name || " Capability"), OutlineBox("Histogram"), ListBox(1)];
	pic = lb &amp;lt;&amp;lt; Get Picture;
	vlb &amp;lt;&amp;lt; Append( // use outlinebox to add title
		OutlineBox("Process Capability for " || col_name, pic)
	);
	dist &amp;lt;&amp;lt; Close Window;	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Those images can be captured from Process Capability or from distribution when you have all of those open at the same time, but it is easier to navigate report layer this way.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1699854662779.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58607i9FB6E2FDFD11526B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1699854662779.png" alt="jthi_0-1699854662779.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 05:51:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697249#M88276</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-13T05:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697442#M88297</link>
      <description>&lt;P&gt;Recently, I found that saving images to a data table can be useful in some use cases. Here is a modified version does that, based on &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt; 's example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

cols = {"NPN1", "PNP1"};
outputdt = New Table( "imgs",
	Add Rows( nitems(cols) ),
	New Column( "image", Expression, "None", Set Values( {} ) ),
);

i = 1;
For Each({col_name}, cols,
	dist = dt &amp;lt;&amp;lt; Distribution(
		Stack(1),
		Continuous Distribution(
			Column(Eval(col_name)),
			Horizontal Layout(1),
			Vertical(0),
			Process Capability(Use Column Property Specs)
		)
	);

	lb = Report(dist)[OutlineBox(col_name || " Capability"), OutlineBox("Histogram"), ListBox(1)];
	pic = lb &amp;lt;&amp;lt; Get Picture;
	outputdt:image[i] = pic;
	i++;
	dist &amp;lt;&amp;lt; Close Window;	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Nov 2023 14:13:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697442#M88297</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2023-11-13T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697670#M88313</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;But I had another question, after saving image to table, can export as excel file? I tried to do this, it was not shown as picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CompleteLeopard_0-1699926733917.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58645iB46BDF00E64A0EB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CompleteLeopard_0-1699926733917.png" alt="CompleteLeopard_0-1699926733917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 01:52:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697670#M88313</guid>
      <dc:creator>CompleteLeopard</dc:creator>
      <dc:date>2023-11-14T01:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697912#M88339</link>
      <description>&lt;P&gt;This not possible to my knowledge. Here are the reasons:&lt;/P&gt;
&lt;P&gt;1) Images in Excel are not cell data. They are OLE objects, which you can think that images are attachments to the sheet. Images in JMP Data Table are cell data. So Excel and JMP see images differently.&lt;/P&gt;
&lt;P&gt;2) Excel probably will never understand the meaning of images in JMP.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 15:05:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/697912#M88339</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2023-11-14T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/698768#M88387</link>
      <description>&lt;P&gt;Here's how to export the report as an MS Word file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

nw_collector = New Window("",
	vlb = V List Box()
);

cols = {"NPN1", "PNP1"};

For Each({col_name}, cols,
	dist = dt &amp;lt;&amp;lt; Distribution(
		Stack(1),
		Continuous Distribution(
			Column(Eval(col_name)),
			Horizontal Layout(1),
			Vertical(0),
			Process Capability(Use Column Property Specs)
		)
	);

	lb = Report(dist)[OutlineBox(col_name || " Capability"), OutlineBox("Histogram"), ListBox(1)];

	vlb &amp;lt;&amp;lt; Append( // use outlinebox to add title
		OutlineBox("Process Capability for " || col_name, lb);
	);
	dist &amp;lt;&amp;lt; Close Window;	
);

vlb &amp;lt;&amp;lt; save msword("c:\TEMP\test.doc", native);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmroz_0-1700067130195.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58744i6CE62BB0CA1CDC61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmroz_0-1700067130195.png" alt="pmroz_0-1700067130195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 16:52:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/698768#M88387</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2023-11-15T16:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to save picture by jsl</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/698801#M88391</link>
      <description>&lt;P&gt;I think getting the images to excel will require powershell (or something else like python) in addition to jsl. You could execute the powershell code from JMP using &lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/run-external-programs-from-jmp.shtml" target="_blank" rel="noopener"&gt;Run Program()&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:21:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-picture-by-jsl/m-p/698801#M88391</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-15T17:21:29Z</dc:date>
    </item>
  </channel>
</rss>

