pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: [INTERFACES] Printing from PgAccess
2+ messages / 2 participants
[nested] [flat]

* Re: [INTERFACES] Printing from PgAccess
@ 1998-01-13 12:56  Constantin Teodorescu <teo@flex.ro>
  0 siblings, 1 reply; 2+ messages in thread

From: Constantin Teodorescu @ 1998-01-13 12:56 UTC (permalink / raw)
  To: Peter T Mount <pgint@maidast.demon.co.uk>; +Cc: pgsql-interfaces

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.

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 ?

-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [INTERFACES] Printing from PgAccess
@ 1998-01-13 20:37  Peter T Mount <pgint@maidast.demon.co.uk>
  parent: Constantin Teodorescu <teo@flex.ro>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter T Mount @ 1998-01-13 20:37 UTC (permalink / raw)
  To: Constantin Teodorescu <teo@flex.ro>; +Cc: 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1998-01-13 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-01-13 12:56 Re: [INTERFACES] Printing from PgAccess Constantin Teodorescu <teo@flex.ro>
1998-01-13 20:37 ` Peter T Mount <pgint@maidast.demon.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox