cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Aadit
Level III

Outline Box with title and image and other details

Hello guys,

I am trying to create a journal which is exported into ppt later (adding just the snippet of code)

obpic = OutlineBox("Page "|| char(pageno), OutlineBox("Title of Presenation",(PictureBox(tmpic))) );
obpic << journal;

jjrn <<Save Presentation("$TEMP/saveppt.pptx", Outline Titles("BottomRight"), "PNG");

 when i perform this i get 

Aadit_0-1709323214476.png

title at top and page number at bottom which is perfect. But along with title i want to add logo author name etc ... Outline box only allows char for title. any alternatives or idea how to overcome this. Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Outline Box with title and image and other details

You might have to do something like this as you don't have too much control on the powerpoint layout (use images to workaround some of the issues)

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb_expr = Expr(dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
));

rep = V List Box(Align("right"), 
	H List Box(align("center"),
		Text Box("Title of presentation", << Set Font Size(50)), Icon Box("JMPLogo")
	),
	gb_expr
);

vlb = V List Box(rep << get picture);

vlb << journal;

//Try(Delete File("$TEMP/saveppt.pptx"));
Current Journal() << Save Presentation("$TEMP/saveppt.pptx", Outline Titles("BottomRight"), "PNG");

Or you could write python script and call that from JMP to create the powerpoint (provide it with images and maybe text from JMP).

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Outline Box with title and image and other details

You might have to do something like this as you don't have too much control on the powerpoint layout (use images to workaround some of the issues)

Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

gb_expr = Expr(dt << Graph Builder(
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
));

rep = V List Box(Align("right"), 
	H List Box(align("center"),
		Text Box("Title of presentation", << Set Font Size(50)), Icon Box("JMPLogo")
	),
	gb_expr
);

vlb = V List Box(rep << get picture);

vlb << journal;

//Try(Delete File("$TEMP/saveppt.pptx"));
Current Journal() << Save Presentation("$TEMP/saveppt.pptx", Outline Titles("BottomRight"), "PNG");

Or you could write python script and call that from JMP to create the powerpoint (provide it with images and maybe text from JMP).

-Jarmo
Aadit
Level III

Re: Outline Box with title and image and other details

@jthi Thanks ... I got the basic idea how to perform this ..

Additionally i explored using  Lineup Ruler Box() and got width of image im going to fit so as to better allign title and logo and size it accordingly.