Re: [INTERFACES] Printing from PgAccess

From: Peter T Mount <pgint(at)maidast(dot)demon(dot)co(dot)uk>
To: Constantin Teodorescu <teo(at)flex(dot)ro>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] Printing from PgAccess
Date: 1998-01-13 20:37:15
Message-ID: Pine.LNX.3.95.980113203113.4566B-100000@maidast
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)earthling(dot)net or pmount(at)maidast(dot)demon(dot)co(dot)uk
Main Homepage: http://www.demon.co.uk/finder
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter(at)maidstone(dot)gov(dot)uk

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Anders Bergman 1998-01-14 06:19:14 '
Previous Message Peter T Mount 1998-01-13 20:31:06 Re: [INTERFACES] Re: [QUESTIONS] Connect to Postgres with pure TCL