Set paper size for layout

Hi,

is it possible to set the paper size for a layout in a function? I just found the option in the file menu, 'Page Setup for This Layout'.

Regards
Peter
No, this is not possible.

What you can do is create a layout with a given paper size and then copy the page setup from that layout to another layout using PrintSettings copySource. However, the first layout has to be in the experiment already.

You can also store the source page setup in a notebook file which can be saved to disk and loaded into any experiment. You can then copy the page setup from the notebook to any other target window and then kill the notebook.

However this will not work across platforms because page setup records are too different and the page size is not transferred.
hrodstein wrote:
What you can do is create a layout with a given paper size and then copy the page setup from that layout to another layout using PrintSettings copySource. However, the first layout has to be in the experiment already.


Thanks, this helped a lot.