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
StefanC
Level III

How do I add a time stamp when printing a data table?

I want to add a time stamp to a print of my data table. I know how to add the date with the &d; option in Page Setup. Is there a way to also add the time?

1 ACCEPTED SOLUTION

Accepted Solutions
Craige_Hales
Super User

Re: How do I add a time stamp when printing a data table?

I don't see how to get the time in the print header either. You could get it on the first page like this

dt = currentdatatable();
textbox(format(today(),"Locale Date Time h:m:s", 23, 0))<<journal;
dt<<journal;

currentjournal()<<savepdf("$temp/test.pdf");
currentjournal()<<closewindow;

open("$temp/test.pdf")

Good wish list item.

 

edit: you'll want to deselect any selected columns and rows if you want everything printed, and you'll want to start with an empty journal.

Craige

View solution in original post

1 REPLY 1
Craige_Hales
Super User

Re: How do I add a time stamp when printing a data table?

I don't see how to get the time in the print header either. You could get it on the first page like this

dt = currentdatatable();
textbox(format(today(),"Locale Date Time h:m:s", 23, 0))<<journal;
dt<<journal;

currentjournal()<<savepdf("$temp/test.pdf");
currentjournal()<<closewindow;

open("$temp/test.pdf")

Good wish list item.

 

edit: you'll want to deselect any selected columns and rows if you want everything printed, and you'll want to start with an empty journal.

Craige

Recommended Articles