cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
lala
Level VII

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