Post
by Janschenkel » Wed Oct 01, 2008 6:11 am
Hi Garrett,
The 'printerSettings' property is a raw environment-dependent binary string: it describes the settings of the user-selected printer on a single computer in a way that you can't parse, just 'get' and 'set'. So that's useful for those situations where you want to ask the user for his settings once and save that somewhere to restore it every time your application starts.
You're looking for the 'printerFeatures', 'printMargins', 'printPaperScale', 'printRotated' and similar global properties. The easiest way is to open the Rev dictionary, choose 'All' in the left-hand list and then type 'print' into the search filter field.
Also, you can find a few examples in the Revolution Resource Center inside the IDE: in the left-hand list, fold out the 'Sample Scripts' entry: it should contain 3 examples for printing.
Last but not least, the User Guide contains a comprehensive chapter on Revolution's printing features - see chapter 9, starting on page 286.
Hope this gets you started - printing in Revolution is not that complicated and in fact very flexible but it takes some getting used to the finer points, such as 'formatForPrinting' on Windows.
Jan Schenkel.