<?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 do I Print current date as image (jpeg file) and save on a network share drive in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240934#M47590</link>
    <description>&lt;P&gt;This works exactly the way I wanted. Thanks so much Craige_Hales. Appreciate your help !&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 01:11:11 GMT</pubDate>
    <dc:creator>newbie_4</dc:creator>
    <dc:date>2020-01-13T01:11:11Z</dc:date>
    <item>
      <title>How do I Print current date as image (jpeg file) and save on a network share drive</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240919#M47587</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am creating bunch of variability plots in a for loop and saving each plot with a unique name using the code below. However, I want to either be able to 1) add a current time stamp (when script runs) to each of these plots or 2) instead of displaying date on each plot, just save a seperate jpeg file that just has date time stamp. Can anyone suggest how can I do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

dt &amp;lt;&amp;lt; New Column( "OVER_UNDER", character, nominal, formula( :MEASURED LAYER || "_" || :UNDER LAYER ) );
overunder = Associative Array( dt:OVER_UNDER &amp;lt;&amp;lt; Get Values ) &amp;lt;&amp;lt; Get Keys;
Create Directory( "\\drive location\folder" );
For( i = 1, i &amp;lt;= N Items( overunder ), i++,
	win = New Window( "window",
		var = dt &amp;lt;&amp;lt; Variability Chart(
			Y( :VALUE ),
			X( :ROUTE, :OPERATION, :PRODUCT, :ANALYTICAL_ENTITY, :DATA_COLLECTION_TIME ),
			Connect Cell Means( 1 ),
			Std Dev Chart( 0 ),
			Points Jittered( 1 ),
			AIAG Labels( 0 ),
			Where( :OVER_UNDER == overunder[i] ),
			By( :PARAMETER, :OVER_UNDER ),
			SendToReport(
				Dispatch(
					{"Variability Chart for VALUE"},
					"Variability Chart",
					FrameBox,
					{Row Legend(
						:Current Tool,
						Color( 1 ),
						Color Theme( "JMP Default" ),
						Marker( 0 ),
						Marker Theme( "" ),
						Continuous Scale( 0 ),
						Reverse Scale( 0 ),
						Excluded Rows( 0 )
					)}
				)
			)
		)
	);

	win &amp;lt;&amp;lt; save picture( "\\share drive\folder\" || overunder[i] || "_SPC.jpeg", "jpeg" );
	win &amp;lt;&amp;lt; close window;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 12:44:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240919#M47587</guid>
      <dc:creator>newbie_4</dc:creator>
      <dc:date>2020-01-13T12:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Print current date as image (jpeg file) and save on a network share drive</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240928#M47588</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tb = Text Box( Char( Format( Today(), "dd-mm-yyyy" ) ), &amp;lt;&amp;lt;setFontSize( 48 ) );
pic = tb &amp;lt;&amp;lt; getpicture;
pic &amp;lt;&amp;lt; saveImage( "$temp/dateString.png", "png" );


Open( "$temp/dateString.png" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a picture of today" style="width: 485px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20941i46D0F77ECA8B353C/image-size/large?v=v2&amp;amp;px=999" role="button" title="dateString.PNG" alt="a picture of today" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;a picture of today&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 21:54:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240928#M47588</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-01-12T21:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Print current date as image (jpeg file) and save on a network share drive</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240931#M47589</link>
      <description>&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Preference for adding date to output" style="width: 662px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20942i432C1676F3019868/image-size/large?v=v2&amp;amp;px=999" role="button" title="DateTitle.PNG" alt="Preference for adding date to output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Preference for adding date to output&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 22:01:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240931#M47589</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-01-12T22:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Print current date as image (jpeg file) and save on a network share drive</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240934#M47590</link>
      <description>&lt;P&gt;This works exactly the way I wanted. Thanks so much Craige_Hales. Appreciate your help !&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 01:11:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-Print-current-date-as-image-jpeg-file-and-save-on-a/m-p/240934#M47590</guid>
      <dc:creator>newbie_4</dc:creator>
      <dc:date>2020-01-13T01:11:11Z</dc:date>
    </item>
  </channel>
</rss>

