cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Sebastienlg
Level II

JMP Script : save a PDF based on the user selection

Hello, 

I would like to save a PDF based on the user selection.

Do you know if it is possible to make it?

Example: the product selected by the user is XX, is it possible to have the product name in the PDF saved?

 

product = "XX";
w = Current Journal(R5);
w << Set page setup( margins(0.1, 0.75, 0.1, 0.1 ), scale( 0.8 ), portrait( 0 ), paper size( "Letter" ) ); w << save pdf( "P:\data\Suivi de tendance "produit"n.pdf" );

When I try this program, it doesn't work.

 

Is anyone have a suggestion to help me?

Thank you

Sebastien

1 REPLY 1

Re: JMP Script : save a PDF based on the user selection

The following script worked for me. I changed the name of the variable to 'produit' in line 1 and added the || operators in line 9 (well, line 10, as I don't have a drive mapped as p:)

produit = "XX";
w = Current Journal( R5 );
w << Set page setup(
	margins( 0.1, 0.75, 0.1, 0.1 ),
	scale( 0.8 ),
	portrait( 0 ),
	paper size( "Letter" )
);
w << save pdf( "P:\data\Suivi de tendance " || produit || "n.pdf" );
//w << save pdf( "$DESKTOP/Suivi de tendance " || produit || "n.pdf");

Recommended Articles