--- Alex Rice <[EMAIL PROTECTED]> wrote:
[..]
I echo Alex's original query. I have not yet discovered a good example of a comprehensive printing script.Does > anyone have samplecode they could share, or have posted in the past to this list, which shows how to do this non-trivial kind of printing. Especially the paper size and pagination?Hi Alex, RunRev 2.0 will have much better printing options, especially for reports. In the meantime, you could take a look at the 'printPaperSize', 'printMargins' , 'printGutters', and a few more 'printXXX' properties. Then get the height of your stack, and you should be able to determine where the page breaks are going to end up, and 'create' or 'clone' a field on the correct card with the pagenumber in it.
One thing I've discovered is that, taken together, the description of the 'printPaperSize' global property and the 'answer printer' command in the Transcript Dictionary are misleading, since it appears from the 'printPaperSize' example that you can **set** the property by script, but doesn't mention that you can also find out the values **the user has set it to** via a 'Page Setup' dialog ('answer printer') - AFAIK this is the only way to determine what the user has asked for in terms of paper size and portrait/landscape choice.
I have not yet tried to understand the report generating in 2.0, and I don't know if it tries to do more with the printer driver API elements that are common across platforms. In particular, I don't know if it will be possible to find out the maximum printable area (minimum margins) on a page, which certainly seems possible for other applications on all the Mac and Windows printers I've used. This is of course essential if you allow your user to set margins and you wnat to warn him/her if cropping is likely to occur.
Maybe some more expert person knows what the minimum acceptable readable properties which printer drivers have to conform to on Revo-supported platforms.
Graham
--
-------------------------------------------------------------------
Graham Samuel / The Living Fossil Co. / UK & France
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
