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

pptx slide format and background color

Folks,

 

I've been fiddling with the text box and spacer formats so I can get an even (white) background when I save the title slide to PowerPoint. However, I cant get the backgrounds and borders to be white instead of grey (see image). I've worked on text box widths, etc, but to no avail. I've attached my script.

If anyone can see what I need to do, I would be most appreciative. Also as a side note, is there a more eloquent way of tabbing the second text box (date) to align with the first text box?

 

	BB = Border Box(Left(50), Right(10), Sides(15),
					Vlist Box(
						Text box(		
									"<font color='Black'>Work</font>", 
									<< Set Font("Calibri", 30, "bold"), 
									<< Markup	
						),
						Spacer Box(),
						Text box(
									"  " || char(Abbrev Date(Today())),
									<< Set Font("Calibri", 30, "bold")
						)
					)		
				);
			
		BB << Set background color(white);
		BB << Set Color("white");
		
		slide_1 = Expr(
					Vlist box(
						Spacer Box(size(5,50) ),
						BB
					)
		);
						

		If(b==0,
		
			slide_1a = slide_1 << Get Picture;
			slide_1b = Picture Box(slide_1a);
			slide_1b << Save Presentation(p1, Insert(Begin));
		
		);

 

 

 

 

 

slide setup_a.PNG

Neil
1 ACCEPTED SOLUTION

Accepted Solutions
Thierry_S
Super User

Re: pptx slide format and background color

Hi Neil,

In the Styles section, it looks like the Window Background Color is not set to white by default. I'm not sure but it is possible that this default color applies to Spacer Box too.

 

Thierry_S_0-1626237977354.png

Best,

TS

 

Thierry R. Sornasse

View solution in original post

6 REPLIES 6
Thierry_S
Super User

Re: pptx slide format and background color

Hi,
Just a thought: have you look into the preferences where I believe you can define the color of different elements in JMP.
Best,
TS
Thierry R. Sornasse
NRW
NRW
Level IV

Re: pptx slide format and background color

Thierry_S,

Many thanks for the input. I looked through the preferences, but didn't see anything that jumped out at me. Would there be a particular "Preference Group" that would be applicable?

 

Neil

Neil
Thierry_S
Super User

Re: pptx slide format and background color

Hi Neil,

In the Styles section, it looks like the Window Background Color is not set to white by default. I'm not sure but it is possible that this default color applies to Spacer Box too.

 

Thierry_S_0-1626237977354.png

Best,

TS

 

Thierry R. Sornasse
NRW
NRW
Level IV

Re: pptx slide format and background color

TS,

 

Your right on the money!!  The Window Background color is the overall solution. I'm guessing there is not a specific JSL command that would modulate this option without going into preferences? 

 

Neil

 

 

 

slide setup_b.PNG

Neil

Re: pptx slide format and background color

You can access the preferences with JSL.

 

prefs.PNG

NRW
NRW
Level IV

Re: pptx slide format and background color

Many thanks Mark!

 

Sorry for the late reply since I didn't see this thread updated. That solution is very helpful. I will look to implement into my code.

 

Neil

Neil