cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

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

lala
Level VIII

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