Can I change the paper size/resolution/page orientation/etc. when printing using the XawPrintShell/XmPrintShell print shells ?
Yes, it is allowed to change the page attributes in the page setup callback (e.g. XawNpageSetupCallback or XmNpageSetupCallback) since this callback is always called before XpStartPage (for the 2nd and following pages: between XpEndPage and XpStartPage). Note that changing page attributes will automagically update the print shell widget size (e.g. attributes XawNminX, XawNminY, XawNmaxX and XawNmaxX (XawPrintShell) or XmNminX, XmNminY, XmNmaxX and XmNmaxX (XmPrintShell) are updated based on events send by the Xp Extension and then the print shell is resized based on the new values (XawPrintShell is slightly more flexible since the size mode can be defined using the XawNlayoutMode attribute)).
Related Questions
- Can I change the paper size/resolution/page orientation/etc. when printing using the XawPrintShell/XmPrintShell print shells ?
- OK, my printer is printing now, but how do I change the print settings like paper type and resolution?
- How can I save paper by printing multiple pages onto a single page, and/or print on both sides?