cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
victorsantos
Level I

How to "save a report as" automatically in a script?

In my script, I create a control chart and a oneway analysis and I 'd like to save each one as .jpg (JPEG), automatically using the same script.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to "save a report as" automatically in a script?

Below is an example for launching a Oneway report and saving the result.  The same general procedure can be followed for saving the report from any JMP Platform.

Open("$SAMPLE_DATA/Big Class.jmp");

o=Oneway( Y( :height ), X( :age ) );

(o<<Report) << Save Picture("$DOCUMENTS/Oneway.jpg", "jpg");

View solution in original post

3 REPLIES 3

Re: How to "save a report as" automatically in a script?

Below is an example for launching a Oneway report and saving the result.  The same general procedure can be followed for saving the report from any JMP Platform.

Open("$SAMPLE_DATA/Big Class.jmp");

o=Oneway( Y( :height ), X( :age ) );

(o<<Report) << Save Picture("$DOCUMENTS/Oneway.jpg", "jpg");

Re: How to "save a report as" automatically in a script?

Hi,

I want to do the above thing in loop i.e. that is save a multiple report one after other into picture format?

I am getting an error

Send Expects Scriptable Object in access or evaluation of 'Send' , o << Report 

Can you please help me resolve it?

Thanks

Akash

Re: How to "save a report as" automatically in a script?

Just to make my question more clear..

For( i=1,i<=3,i++,

Var = Variability Chart(

  Y( :SITE_VALUE ),

  X( :PRODUCT, :DAY, :LOT, :WAFER ),

  Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),

  Std Dev Chart( 0 ),

  Mean Diamonds( 1 ),

  Where( dt:Para == pt:Para ),

  Rbox = SendToReport(

  Dispatch( {}, "Variability Chart for SITE_VALUE", OutlineBox, Set Title( Title ) ),

  Dispatch(

  {"Variability Chart for SITE_VALUE"},

  "2",

  ScaleBox,

  {Format( "Fixed Dec", 12, 3 ), Min( pt:LL - 0.1*pt:LL ), Max( (pt:UL + 0.1*pt:UL) ), Inc( 0.1*pt:Target ), Add Ref Line( 0, Dotted, "Medium Light Gray" ),

  Add Ref Line( pt:Target, Solid, "Black" ), Add Ref Line( pt:UL, Solid, "Medium Dark Fuchsia" ), Add Ref Line(

  pt:LL,

  Solid,

  "Medium Dark Fuchsia"

  )}

  ),

  Dispatch( {"Variability Chart for SITE_VALUE"}, "", NomAxisBox, Rotated Tick Labels( 1 ) ),

  Dispatch( {"Variability Chart for SITE_VALUE"}, "", NomAxisBox( 2 ), Rotated Tick Labels( 1 ) ),

  Dispatch( {"Variability Chart for SITE_VALUE"}, "", NomAxisBox( 3 ), Rotated Tick Labels( 1 ) )

  );

);

Rbox = Var <<Report ;

Rbox << save picture("Temp",jpeg);

);

// Above code runs just fine for single iteration but for more iteration it gives error

//Send Expects Scriptable Object in access or evaluation of 'Send' , Var << get scriptable

// I am new JMP and using JMP 8 (thats what we have here)

// My ultimate aim is to import the generated files into a ppt. For which I am thinking of using Powerpoint Macro

Please help to resolve.

Thanks in advance

Akash