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.

5 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
John_Powell_JMP

Joined:

May 30, 2014

You can save several open reports to Interactive HTML with Data all at once using "Create Web Report" under the view "menu" in JMP 13. It will generate an index page with links to each report.  Our Intereactive HTML examples at http://www.jmp.com/jmphtml5/ were saved this way.

 

If you have JMP 11 or 12, you can use this add-in:

https://community.jmp.com/t5/JMP-Add-Ins/HTML5-Auto-Publishing/ta-p/22673

 

If you really just want images all on one page, you'd have to save each report to an image, then build up the HTML page in JSL. You can look at https://community.jmp.com/t5/JMP-Scripts/Export-Data-Table-to-HTML/ta-p/23410 for and example of building an HTML table from a JMP data table and insert <img> tags instead of column data.  

Craige_Hales

Staff

Joined:

Mar 21, 2013

Or journal all of the reports and make the HTML from the journal, or, create a dashboard of the reports and create the html from that.

Craige