Subscribe Bookmark RSS Feed

Creating a .html file

Gabriela_MJ

Occasional Contributor

Joined:

Jan 4, 2017

Hello,

I am moving some statistical reports (graphics) from one software to JMP.

At the end of the analysis, I need to put all the graphs (may be .png format) into an .html file. 

Is it possible to do this in JMP? I have the scripts for each graph, however I do not find the way to write an .html file yet.

 

Thanks in advanced.

3 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

Here is the example taken directly from

     Help==>Scripting Index==>Save Interactive HTLM

Names Default To Here( 1 );
//This message applies to all display box objects
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
rbiv << Save Interactive HTML( "path/to/example.html" );
Jim
Gabriela_MJ

Occasional Contributor

Joined:

Jan 4, 2017

Hello,
Thanks for your suggestion. However, what I need it to put into a .html file the graphs which are from different (and several) .jmp scripts.
In the software that I used to use, I used to save each graph as an .png file and I writed a routing which creates the .html file using the images. Now, I have the graphs from JMP but I would like to know if it is possible to create the .html report directly from JMP.

Kind regards,
txnelson

Super User

Joined:

Jun 22, 2012

The answer is yes.  If you want to create your own custom HTLM file, you would use

     Save Text File( path, text|blob, <mode("replace"|"append")> )

Take a look for an example in:

     Help==>Scripting Index==>Save Test File

Jim