cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-282561%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20JSL%20%E5%B0%87%E6%97%A5%E8%AA%8C%E5%84%B2%E5%AD%98%E7%82%BA%20PPT%EF%BC%88%E6%AF%8F%E5%BC%B5%E6%8A%95%E5%BD%B1%E7%89%87%202%20%E5%80%8B%E5%9C%96%E8%A1%A8%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282561%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E7%94%A8%E6%88%B6%E6%82%A8%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%98%97%E8%A9%A6%E5%B0%87%E6%97%A5%E8%A8%98%E5%8F%A6%E5%AD%98%E7%82%BA%E5%B9%BB%E7%87%88%E7%89%87%E3%80%82%20%E6%88%91%E6%83%B3%E7%82%BA%E6%AF%8F%E5%BC%B5%E6%8A%95%E5%BD%B1%E7%89%87%E5%84%B2%E5%AD%98%202%20%E5%BC%B5%E5%9C%96%E8%A1%A8%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%8F%AA%E5%84%B2%E5%AD%98%E4%B8%80%E5%BC%B5%E3%80%82%3C%2FP%3E%3CP%3E%E7%8F%BE%E5%9C%A8%E6%88%91%E6%AF%8F%E5%BC%B5%E6%8A%95%E5%BD%B1%E7%89%87%E9%83%BD%E6%9C%89%E4%B8%80%E5%BC%B5%E5%9C%96%E8%A1%A8%E3%80%82%20%E6%88%91%E6%83%B3%E8%A6%81%E6%AF%8F%E5%BC%B5%E6%8A%95%E5%BD%B1%E7%89%87%202%20%E5%BC%B5%E5%9C%96%E8%A1%A8%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22simon_2_0-1595967729809.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22simon_2_0-1595967729809.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22simon_2_0-1595967729809.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25781i28EEAD1D22087257%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22simon_2_0-1595967729809.png%22%20alt%3D%22simon_2_0-1595967729809.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E8%A9%B2%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20JSL%20%E4%BE%86%E5%81%9A%E5%88%B0%E9%80%99%E4%B8%80%E9%BB%9E%EF%BC%9F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%20JSL%20%E8%85%B3%E6%9C%AC%E6%98%AF%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FFitness.jmp%22%20)%3B%0Aobj%20%3D%20Logistic(%20Y(%20%3AName%20)%2C%20X(%20%3ARstPulse%20)%2C%20By(%20%3AAge)%20)%3B%0Aobj%20%26lt%3B%26lt%3B%20journal%3B%0ACurrent%20Journal()%20%26lt%3B%26lt%3B%20Save%20Presentation(%22fitness_logistic.pptx%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E8%AC%9D%E8%AC%9D%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-282561%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E5%85%A7%E5%AE%B9%E7%B5%84%E7%B9%94%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E5%88%86%E4%BA%AB%E5%92%8C%E4%BA%A4%E6%B5%81%E6%88%90%E6%9E%9C%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-282631%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20JSL%20%E5%B0%87%E6%97%A5%E8%AA%8C%E5%84%B2%E5%AD%98%E7%82%BA%20PPT%EF%BC%88%E6%AF%8F%E5%BC%B5%E6%8A%95%E5%BD%B1%E7%89%87%202%20%E5%BC%B5%E5%9C%96%E8%A1%A8%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282631%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E9%80%99%E5%BE%88%E5%A5%BD%E7%94%A8%E3%80%82%20%E8%AC%9D%E8%AC%9D%E5%90%89%E5%A7%86%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-282618%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20JSL%20%E5%B0%87%E6%97%A5%E8%AA%8C%E5%84%B2%E5%AD%98%E7%82%BA%20PPT%EF%BC%88%E6%AF%8F%E5%BC%B5%E6%8A%95%E5%BD%B1%E7%89%87%202%20%E5%BC%B5%E5%9C%96%E8%A1%A8%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-282618%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E9%80%99%E6%98%AF%E5%B0%8D%E8%85%B3%E6%9C%AC%E7%9A%84%E4%BF%AE%E6%94%B9%EF%BC%8C%E6%AF%8F%E9%A0%81%E7%94%A2%E7%94%9F%E5%85%A9%E5%80%8B%E5%9C%96%E8%A1%A8%E3%80%82%E5%AE%83%E9%80%8F%E9%81%8E%E5%89%B5%E5%BB%BA%E5%85%A9%E5%80%8B%E5%9C%96%E8%A1%A8%E7%9A%84%E5%9C%96%E7%89%87%EF%BC%8C%E7%84%B6%E5%BE%8C%E5%B0%87%E5%85%B6%E6%B7%BB%E5%8A%A0%E5%88%B0%E6%97%A5%E8%AA%8C%E4%B8%AD%EF%BC%88%E8%80%8C%E4%B8%8D%E6%98%AF%E5%8E%9F%E5%A7%8B%E5%9C%96%E8%A1%A8%EF%BC%89%E4%BE%86%E5%AF%A6%E7%8F%BE%E6%AD%A4%E7%9B%AE%E7%9A%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ppt.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ppt.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ppt.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F25785iEFF03909EBD85634%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ppt.PNG%22%20alt%3D%22ppt.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FFitness.jmp%22%20)%3B%0Aobj%20%3D%20Logistic(%20invisible%2C%20Y(%20%3AName%20)%2C%20X(%20%3ARstPulse%20)%2C%20By(%20%3AAge%20)%20)%3B%0Ajour%20%3D%20New%20Window(%20%22The%20Journal%22%2C%20%26lt%3B%3CJOURNAL%3E%3C%2FJOURNAL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
simon_2
Level III

How to save journal as PPT (2 graphs per slide) using JSL

Hello users,

I am trying to save a journal as powerpoint. I would like to save 2 graphs per powerpoint slide instead of just one.

Right now I get 1 graph per slide. I want 2 graphs per slide.

 

simon_2_0-1595967729809.png

 

How do I go about doing that using JSL?

 

My JSL script is:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
obj = Logistic( Y( :Name ), X( :RstPulse ), By( :Age) );
obj << journal;
Current Journal() << Save Presentation("fitness_logistic.pptx");

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to save journal as PPT (2 graphs per slide) using JSL

Here is a modification of your script that produces the graphs at two graphs per page.  It does this by creating a picture of the 2 graphs, and then adding that to the journal, not the original graphs.

ppt.PNG

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
obj = Logistic( invisible, Y( :Name ), X( :RstPulse ), By( :Age ) );
jour = New Window( "The Journal", <<journal, vlb = V List Box() );

// Loop through the outputs and put them into the journal
// as an Outline Box....to set the title
// and a picture of 2 of the logistic plots
// If the number of plots produced is an odd number, then
// don't allow the script to error out by using Try() on the second
// graphs in each loop
For( i = 1, i <= N Items( obj ), i = i + 2,
	ob = Outline Box( "OB", hlb1 = H List Box() );
	ob << set title( Report( obj[i] )[Outline Box( 1 )] << get title );
	hlb2 = H List Box();
	hlb2 << append( Report( obj[i] )[Picture Box( 1 )] );
	ob << set title(
		Char( Report( obj[i] )[Outline Box( 1 )] << get title ) || " & " || Char( Report( obj[i + 1] )[Outline Box( 1 )] << get title )
	);
	Try( hlb2 << append( Report( obj[i + 1] )[Picture Box( 1 )] ) );
	hlb1 << append( hlb2 << get picture );
	vlb << append( ob );
);
obj << delete;

jour << Save Presentation( "fitness_logistic.pptx" );
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to save journal as PPT (2 graphs per slide) using JSL

Here is a modification of your script that produces the graphs at two graphs per page.  It does this by creating a picture of the 2 graphs, and then adding that to the journal, not the original graphs.

ppt.PNG

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
obj = Logistic( invisible, Y( :Name ), X( :RstPulse ), By( :Age ) );
jour = New Window( "The Journal", <<journal, vlb = V List Box() );

// Loop through the outputs and put them into the journal
// as an Outline Box....to set the title
// and a picture of 2 of the logistic plots
// If the number of plots produced is an odd number, then
// don't allow the script to error out by using Try() on the second
// graphs in each loop
For( i = 1, i <= N Items( obj ), i = i + 2,
	ob = Outline Box( "OB", hlb1 = H List Box() );
	ob << set title( Report( obj[i] )[Outline Box( 1 )] << get title );
	hlb2 = H List Box();
	hlb2 << append( Report( obj[i] )[Picture Box( 1 )] );
	ob << set title(
		Char( Report( obj[i] )[Outline Box( 1 )] << get title ) || " & " || Char( Report( obj[i + 1] )[Outline Box( 1 )] << get title )
	);
	Try( hlb2 << append( Report( obj[i + 1] )[Picture Box( 1 )] ) );
	hlb1 << append( hlb2 << get picture );
	vlb << append( ob );
);
obj << delete;

jour << Save Presentation( "fitness_logistic.pptx" );
Jim
simon_2
Level III

Re: How to save journal as PPT (2 graphs per slide) using JSL

This works great. Thanks Jim.

Recommended Articles