Re: [INTERFACES] Printing from PgAccess - Mailing list pgsql-interfaces

From Peter T Mount
Subject Re: [INTERFACES] Printing from PgAccess
Date
Msg-id Pine.LNX.3.95.980113203113.4566B-100000@maidast
Whole thread Raw
In response to Re: [INTERFACES] Printing from PgAccess  (Constantin Teodorescu <teo@flex.ro>)
List pgsql-interfaces
On Tue, 13 Jan 1998, Constantin Teodorescu wrote:

> Peter T Mount wrote:
> >
> > A couple of years ago, I wrote a small application in Tcl/Tk, which
> > generated postscript files containing a map showing how far we had got in
> > capturing data into a GIS system.
> > I can't remember much on how I had done this, but I should be able to dig
> > up the code to give you some pointers.
>
> Thanks.

Ok, I'll hunt it down.

> In PgAccess I will use a canvas in order to paint the report and get the
> image as postscript file.
>
> 1. Presuming that my printer uses A4 paper (X mm by Y mm). How do I know
> where should I stop writting on canvas (where is the page limit). My
> objects from the canvas are using some coordinates. What is the formula
> for translating from canvas coordinates into milimeters ?

I seem to remember that it's capable of scaling the output, so one way is
to refer to the coordinates in units of mm. That way, you can even handle
other paper sizes.

--
Peter T Mount  petermount@earthling.net or pmount@maidast.demon.co.uk
Main Homepage: http://www.demon.co.uk/finder
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov.uk


pgsql-interfaces by date:

Previous
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] Re: [QUESTIONS] Connect to Postgres with pure TCL
Next
From: Anders Bergman
Date:
Subject: '