Center text in a reportI'm trying to center a report a created so the text is all centered instead of RTL for number and LTR for text
here is my code, dt is just a data table I tried using "Horizontal Alignment( "center" )" but it didn't work
Data TableRe: Center text in a reportmyPlatform = New Window( "Record Wafers",
modal,
myDispObj = dt << getAsReport,
myDispObj[Table Box( 1 )] << Set Scrollable( 0, 0 ) << Horizontal Alignment( "center" )
);Re: Center text in a reportAssuming the text you mention is in a 'StringColBox()':
NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv = dt << Bivariate( Y( :weight ), X( :height ), Fit Line );
repBiv = Report(biv);
Wait(3);
repBiv[StringColBox(1)] << setJustify( "center" );Re: Center text in a reportthanks but it doesn't work here is my code again, i added the excel, hopefully you can show me what's wrong
dt = Open( "C:\Users\test.xls", "invisible" );
ob = Outline Box( "test", vl = V List Box() );
myPlatform = New Window( "test",
modal,
myDispObj = dt << getAsReport,
myDispObj[StringColBox( 1 )]<< setJustify( "center" );
myDispObj[Table Box( 1 )] << Set Scrollable( 0, 0 );
);

Re: Center text in a reportUsing JMP 15.2 (on a Mac), with your code above I get (after stretching the column);

If I remove the 'setJustify()', I see:
