How to get printer info

livfoss at blueyonder.co.uk livfoss at blueyonder.co.uk
Thu Jan 2 15:27:01 EST 2003


On Thu, 2 Jan 2003 10:02:48 +1000 Sarah <sarahr at genesearch.com.au> wrote:

>The printPaperSize property will return the selected dimensions for the current printer & paper. 
[...]

This amazed me, as the Transcript Dictionary entry for printPaperSize implied that you can set the paper size (I had assumed this was for the internal consumption of Revolution's print commands), but did not give any clue that this property (of what? is it the mainstack or something else?) is actually preset by interaction with the OS during a Page Setup dialog. Nor is any such interaction mentioned in the documentation for the 'print' command. However, it turns out to be the case. Thanks Sarah - but I do think the documentation needs improving in this respect. Perhaps there should be a more general section of the docs describing the extent to which a revolution app can interrogate the environment it's in - for example finding out the platform, OS etc. This section could then be referred to from descriptions of relevant commands.

Just my opinion...

Graham

-------------------------------------------------------------
Graham Samuel / The Living Fossil Co. / UK & France



More information about the use-livecode mailing list