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

JMP SCRIPT: Rename the top of each title page

Hello everyone,

I am making a PDF based on the journal, and I do not know how to rename the title or the top of each page...

Below is what I get:

Sebastienlg_0-1681212192081.png

Below is my script:

Table << journal;
graph << journal;
RAW_DATA_TABLE <<journal;

w = Current Journal(Report);
listOfReports = w << child;
nReports = N Items( listOfReports );


// Ajout du titre et de la date de création du rapport
headerPage = V List Box( 
H List Box (Text Box( "Période sélectionnées :" ), Text Box(Format("Date_1"n, "d/m/y")  ), Text Box(" au : "), Text Box(Format("Date_2"n, "d/m/y")  ))
);

Insert Into( listOfReports, headerPage, 1 );

w = Current Journal(R5);
w << Set page setup( margins(0.1, 0.75, 0.1, 0.75 ), scale( 1 ), portrait( 1 ), paper size( "Letter" ) );
w << save pdf( document\CC.pdf" );
w << close window;

Is someone has any suggestion to help me?

Regards,

Sébastien

 

1 REPLY 1

Re: JMP SCRIPT: Rename the top of each title page

Hello @Sebastienlg ,

You can change the window title with << set window title().

w = Current Journal(R5);
w << set window title("test name");

Hope this helps.