I'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
myPlatform = New Window( "Record Wafers", modal, myDispObj = dt << getAsReport, myDispObj[Table Box( 1 )] << Set Scrollable( 0, 0 ) << Horizontal Alignment( "center" ) );
Assuming 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" );
thanks 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 ); );
Using JMP 15.2 (on a Mac), with your code above I get (after stretching the column);
If I remove the 'setJustify()', I see: