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
lala
Level IX

How to use JSL to save the screenshot of the specified area of the data table as a picture?

For example, save the dt[1::10,1::5] screenshot as "C:\bs.png"

 

Thanks!

 

2022-06-09_18-17-55.png

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to use JSL to save the screenshot of the specified area of the data table as a picture?

One option to do something a bit like that

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << Delete Rows(11::40);

nw = new window("",
	dt << Get As Report
);

pic = nw << Get Picture;
pic << Save Image("$TEMP/DELETEME.png", "png");
nw << Close Window;
Close(dt, no save);
Open("$TEMP/");
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to use JSL to save the screenshot of the specified area of the data table as a picture?

One option to do something a bit like that

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt << Delete Rows(11::40);

nw = new window("",
	dt << Get As Report
);

pic = nw << Get Picture;
pic << Save Image("$TEMP/DELETEME.png", "png");
nw << Close Window;
Close(dt, no save);
Open("$TEMP/");
-Jarmo

Recommended Articles