<?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 Pasting Clipboard into external documents using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213035#M42626</link>
    <description>&lt;P&gt;I am trying to use JSL to automatically copy and paste a large number of images generated in JMP into Microsoft word. I've figured out how to copy them images using the "picture_box &amp;lt;&amp;lt; Copy Picture;" f&lt;SPAN style="font-family: inherit;"&gt;unctionality. However I am unsure how/if there is an easy way to paste the images into microsoft word once they are coppied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 20:57:08 GMT</pubDate>
    <dc:creator>Arthur_Wesley</dc:creator>
    <dc:date>2019-06-13T20:57:08Z</dc:date>
    <item>
      <title>Pasting Clipboard into external documents using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213035#M42626</link>
      <description>&lt;P&gt;I am trying to use JSL to automatically copy and paste a large number of images generated in JMP into Microsoft word. I've figured out how to copy them images using the "picture_box &amp;lt;&amp;lt; Copy Picture;" f&lt;SPAN style="font-family: inherit;"&gt;unctionality. However I am unsure how/if there is an easy way to paste the images into microsoft word once they are coppied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 20:57:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213035#M42626</guid>
      <dc:creator>Arthur_Wesley</dc:creator>
      <dc:date>2019-06-13T20:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting Clipboard into external documents using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213046#M42628</link>
      <description>&lt;P&gt;You use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Save MSWord( path );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213046#M42628</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-14T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting Clipboard into external documents using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213078#M42638</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;You use&lt;BR /&gt;Save MSWord( path );&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I guess I wasn't clear in my OP, I am trying to save &lt;U&gt;&lt;EM&gt;Multiple&lt;/EM&gt;&lt;/U&gt; images generated in JMP to&amp;nbsp;&lt;U&gt;&lt;EM&gt;One&lt;/EM&gt;&lt;/U&gt;&amp;nbsp;Doccument ie.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(i = 0, i &amp;lt;10, i++,
// Generate new images
// copy images in JMP
// paste image into Microsoft word
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Save MSWord() Function creates a&amp;nbsp;&lt;EM&gt;&lt;U&gt;new&lt;/U&gt;&lt;/EM&gt; Microsoft word file and so is not compatable with this code.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:04:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213078#M42638</guid>
      <dc:creator>Arthur_Wesley</dc:creator>
      <dc:date>2019-06-14T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting Clipboard into external documents using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213095#M42642</link>
      <description>&lt;P&gt;The methodology you need to use is to move the required graphs into a JMP journal, and then when done, use the Save MSWord(), to save the journal to a Word document.&amp;nbsp; Here is a little example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
biv = Bivariate( Y( :height ), X( :weight ) );

jw = New Window( "My Journal", &amp;lt;&amp;lt;journal );

Report( biv ) &amp;lt;&amp;lt; journal;

biv = oneway( Y( :height ), X( :sex ) );

Report( biv ) &amp;lt;&amp;lt; journal;

jw &amp;lt;&amp;lt; save MSWORD( "path\to\MSWordTest.doc" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:39:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213095#M42642</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-14T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting Clipboard into external documents using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213130#M42649</link>
      <description>&lt;P&gt;Here's a way to do it without using a journal.&amp;nbsp; The &lt;STRONG&gt;page break box()&lt;/STRONG&gt; insures that each graph is on a separate page.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Airline Delays.jmp");
graph1_expr = expr(
	dt &amp;lt;&amp;lt; Graph Builder( Show Control Panel( 0 ),
		Variables( X( :Day of Month ), Y( :Month ), Color( :Arrival Delay ) ),
		Elements( Heatmap( X, Y, Legend( 5 ) ) ),
		SendToReport(
			Dispatch( {}, "Day of Month", ScaleBox,
				{Label Row( Show Major Ticks( 0 ) )} ),
			Dispatch( {}, "Month", ScaleBox,
				{Reversed Scale, Label Row( Show Major Ticks( 0 ) )} ),
			Dispatch( {}, "400", ScaleBox,
				{Legend Model( 5, Properties( 0,
						{gradient( {Scale Values( [-10 2.5 15 27.5 40] ),
							Label Format( "Fixed Dec", 15, 0 )}
						)},
						Item ID( "Arrival Delay", 1 ) ) )} ),
			Dispatch( {}, "graph title", TextEditBox, 
				{Set Text( "Arrival Delays by Day" )} )
		)
	);
);
graph2_expr = expr(
	dt &amp;lt;&amp;lt; Graph Builder( Show Control Panel( 0 ),
		Variables( X( :Day of Week ), Overlay( :Airline ) ),
		Elements( Bar( X, Legend( 2 ) ) ),
		SendToReport( Dispatch( {}, "graph title", TextEditBox,
				{Set Text( "Flights by Airline and Day of Week" )}
			)
		)
	);
);
graph3_expr = expr(
	dt &amp;lt;&amp;lt; Graph Builder( Show Control Panel( 0 ),
		Variables( X( :Distance ), Wrap( :Airline ) ),
		Elements( Histogram( X, Legend( 9 ) ) ),
		SendToReport(
			Dispatch( {}, "Distance", ScaleBox,
				{Min( -6.07535604831441 ), Max( 2900 ), Inc( 500 ), Minor Ticks( 0 ),
				Label Row( Label Orientation( "Angled" ) )} ),
			Dispatch( {}, "graph title", TextEditBox,
				{Set Text( "Flight Distance by Airline" )} )
		)
	);
);

//------------------------------------------------------------------------------
ma_win = new window("Multiple Charts", 
	panelbox("Actions",
		hlistbox(
			msword_button = buttonbox("Save to MS-Word",
				g_output &amp;lt;&amp;lt; save msword("", Native);
			),
			close_button = buttonbox("Close this window",
				ma_win &amp;lt;&amp;lt; close window;
			),
		),
	),
	g_output = vlist box(
		graph1_expr,
		page break box(),
		graph2_expr,
		page break box(),
		graph3_expr
	)
);

msword_button &amp;lt;&amp;lt; set icon("WinFileSave");
close_button  &amp;lt;&amp;lt; set icon("Stop"); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:17:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pasting-Clipboard-into-external-documents-using-JSL/m-p/213130#M42649</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2019-06-14T17:17:08Z</dc:date>
    </item>
  </channel>
</rss>

