cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
arawlings
Level II

How to specify placement of JPEGs in PowerPoint

Hello!

 

I have learned how to automatically create, insert & update JMP graphs into PowerPoint via jsl script (see below script & reference). Now, I want to be able to specify a couple more items regarding these graphs:

 

1. WHERE on the PowerPoint slide it is to be

2. add a picture border to the graph in the PowerPoint slide

 

Here is my current script, which virtually opens the data, makes the graph, saves it, inserts it into PPoint, and then opens the PPoint.

******************************************************************************************************

Names Default To Here( 1 );
 
dt = Open( "Blood_Pressure_Testing.jmp", invisible );
biv = dt << Graph Builder(
	Size( 826, 596 ),
	Show Control Panel( 0 ),
	Variables( X( :Subject ), Y( :Dose ), Color( :BP 8M ) ),
	Elements( Points( X, Y, Legend( 19 ) ) ),
	Local Data Filter( Close Outline( 1 ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				19,
				Properties(
					0,
					{gradient( {Color Theme( "Jet"(1) ), Discrete Colors( 1 )} )},
					Item ID( "BP 8M", 1 )
				),
				Properties( 1, {Marker( "Filled Diamond" )}, Item ID( "Dose", 1 ) )
			)}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "XXXXXXX" )} )
	)
);
 
Report( biv )[Outline Box( 1 )] << Set title( "This is my title" );
 
//test comment - this works
 
Report( biv ) << journal;
biv << close window;
 
jour = Current Journal();
 
jour << Save Presentation( "<path to save>" );
 
Open( "<path to PowerPoint" );
******************************************************************************************************
 
 
Thanks for the help!
1 REPLY 1
jthi
Super User

Re: How to specify placement of JPEGs in PowerPoint

You can see the easy options you have available from Scripting Index (search for presentation) or from JMP Help. You might be able to do what you want, by building a custom window and saving that as an image to the powerpoint.

 

Usually I just use JMP to create report images and then I have Python script (parametrized) which I call using Run Program to create my powerpoint from those images (I don't use JMP's Python Integration as it, is in my opinion, a nightmare to get working).

-Jarmo