If you want something like this
A JMP report in the right side of a display tree. The left side is a vertical stack of two items.
You could use something like this
dt = Open( "$sample_data/big class.jmp" );
the_report = V List Box( // use vlist for capturing, not displaying
dt << Bivariate( Y( :weight ), X( :height ), Fit Line )
);
logo = Icon Box( "JMPLogo" ) << getpicture; // 262 wide by 152 tall
logo << set size( {93, 48} );
New Window( "test the logo",
Border Box( Left( 10 ), top( 10 ),
H List Box(
V List Box(
Picture Box( logo ),
Text Box( "Company Name " )
),
Border Box( Left( 5 ), the_report )
)
)
);
Using a vlistbox for capturing the report will work better than most other boxes in some rare cases. The report notices it is being created inside of the vlist and does not open its own window. I added a little space with left(5) inside the logo boiler plate, and moved the logo away from the edge with left(10), top(10).
You don't have to show the window on the screen and manually capture the picture. You could use this:
dt = Open( "$sample_data/big class.jmp" );
the_report = V List Box( // use vlist for capturing, not displaying
dt << Bivariate( Y( :weight ), X( :height ), Fit Line )
);
logo = Icon Box( "JMPLogo" ) << getpicture; // 262 wide by 152 tall
logo << set size( {93, 48} );
logoreport =
Border Box( Left( 10 ), top( 10 ),
H List Box(
V List Box(
Picture Box( logo ),
Text Box( "Company Name " )
),
Border Box( Left( 5 ), the_report )
)
);
logoreport<<savepicture("f:/test the logo.png");
open("f:/test the logo.png");
To get
Saved without opening a window.
Craige