Changing Layout margins

Is there any way to change a layout's margins programmatically?

This seems to be a hidden setting:
- if I use File -> Page Setup and then adjust the margin, all my graphs are adjusted (shown by the dotted rectangle).
- if I save a macro of that Layout, it reproduces with the correct margin
- I don't see any number which controls the dotted rectangle. Am I missing something?

The point of changing the margin programmatically is that there is no other way of adjusting a tiled layout so that the graphs are not stretched in silly directions.
Quote:
Is there any way to change a layout's margins programmatically?


Yes. Use the PrintSettings operation.

(This is completely different in Igor7 where you use PageLayoutAction. See "Page Layout Pages" in the Page Layouts help file.)

Quote:
This seems to be a hidden setting:


See "Layout Page Setups" in the Igor6 Graphics help file.