page setup - A4

Richard Gaskin ambassador at fourthworld.com
Wed Feb 19 17:17:00 EST 2003


livfoss at blueyonder.co.uk wrote:

> Hi Carsten, I'm having trouble getting a good interaction with a printer as
> well. A 'dirty' solution to your problem is to script
> 
> set the printPaperSize to 595,841
> 
> in the startUp handler of your application (or a preOpenStack handler for your
> main stack). This will work if you know that all your users will really be
> using an A4 printer, so that the physical paper size and the size assumed by
> your program will be the same.
> 
> Of course it won't work if your user has suddenly changed the default size to
> A6 card or something, and it will continue to look wrong when the 'Page Setup'
> dialog comes up with 'US Letter' appearing as the default. To my mind the real
> problem is that AFAIK in Revo you can't write back the properties of the
> printer driver in general - if you could, then you could arrange that when the
> 'Page Setup' dialog comes up, the size is shown as A4. This seems to me a
> symptom of the fact (as far as I've been able to understand it) that
> Revolution doesn't provide a way to talk to printer drivers, although it is
> clear that this is possible for applications in both Macintosh (e.g. Graphic
> Converter, which even knows the actual printable area, or PageMaker, which
> memorises even obscure printer settings to do with colour management etc) and
> Windows (where expert friends tell me that Visual Basic provides a way to
> interrogate and set printer properties really easily - can anyone else
> elaborate!

I wonder if this is a bug.

Rev's values for the printPaperSize do change after an answer printer
command, so it seems reasonable that they should be initialized to reflect
current settings on startup.  Any reason why it shouldn't?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list