Hello all,
I am running the following code to try and adjust the Page Setup settings for this PDF before exporting it to my desktop. An example of my code looks like this:
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw = New Window ("Charts",
obj = dt << Control Chart Builder( Variables( Y( :height, :weight ) ), Show Control Panel( 0 ), SendToReport(
) );
);
nw << Set page setup(
margins( 0.75, 0.75, 0.75, 0.75 ),
scale( 0.8 ),
portrait( 1 ),
paper size( "Tabloid" )
);
nw << Save PDF ("Desktop\EXAMPLE.pdf");When using this, the PDF document "EXAMPLE" gets to my Desktop but does not seem to take into consideration the 'Set page setup' portion of my code. It is also not throwing an error when getting to the 'Set page setup' line, so it appear to be trying to work, but not actually working.
I also seem to be unable to add the Boolean 1 in the Save PDF function to make the Page Setup pop-up happen.
Does anyone know what I might have done wrong to cause this?
Thanks