cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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.

Recommended Articles