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
OneNorthJMP
Level V

JOURNAL Report Title

I want to create a journal 1st page with title that put in the centre of the page. But, seem like the textbox is always show up at the top of the page. Any idea? 

 

 

nw = New Window( "Reports",
	<<Journal,
	hlb = H List Box(
		lub = Lineup Box( N Col( 1 ), 
//ob_stat = Outline Box( "Statistic Summary"),
			tb = Text Box( "Pegasus Characterization Report" ),
			Page Break Box(), // start new page
		)
	)
);

tb << Set Font Size( 20 ) << Set Font Style( "Bold" ) << Justify Text( "center" ) << setWrap( 800 ) <<
SetWidth( 1200 );

Reports = Current Journal();
Reports << Set page setup( margins( 0.1, 0.1, 0.1, 0.1 ), scale( 0.65 ), portrait( 0 ), paper size( "A4" ) );

 

 

image.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: JOURNAL Report Title

See if this gets you what you want

nw = New Window( "Reports",
	<<Journal,
	spacer box(size(0,600)),
	hlb = H List Box(
		lub = Lineup Box( N Col( 1 ), 
//ob_stat = Outline Box( "Statistic Summary"),
			tb = Text Box( "Pegasus Characterization Report" ),
			Page Break Box(), // start new page
		)
	)
);
tb << Set Font Size( 20 ) << Set Font Style( "Bold" ) <<
Justify Text( "center" ) << setWrap( 800 ) << SetWidth( 1200 );
Reports = Current Journal();
Reports << Set page setup(
	margins( 0.1, 0.1, 0.1, 0.1 ),
	scale( 0.65 ),
	portrait( 0 ),
	paper size( "A4" )
);
Jim

View solution in original post

OneNorthJMP
Level V

Re: JOURNAL Report Title

Thanks Nelson. It work for me. 

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: JOURNAL Report Title

See if this gets you what you want

nw = New Window( "Reports",
	<<Journal,
	spacer box(size(0,600)),
	hlb = H List Box(
		lub = Lineup Box( N Col( 1 ), 
//ob_stat = Outline Box( "Statistic Summary"),
			tb = Text Box( "Pegasus Characterization Report" ),
			Page Break Box(), // start new page
		)
	)
);
tb << Set Font Size( 20 ) << Set Font Style( "Bold" ) <<
Justify Text( "center" ) << setWrap( 800 ) << SetWidth( 1200 );
Reports = Current Journal();
Reports << Set page setup(
	margins( 0.1, 0.1, 0.1, 0.1 ),
	scale( 0.65 ),
	portrait( 0 ),
	paper size( "A4" )
);
Jim
OneNorthJMP
Level V

Re: JOURNAL Report Title

Thanks Nelson. It work for me.