Board index » delphi » Printer margins ?
bjoe...@sn.no (Bjorn-Kare Nilssen)
![]() Delphi Developer |
Mon, 03 Apr 2000 03:00:00 GMT
|
bjoe...@sn.no (Bjorn-Kare Nilssen)
![]() Delphi Developer |
Mon, 03 Apr 2000 03:00:00 GMT
Printer margins ?I need to place text and images very exact on the printers canvas. I need to find out exactly where the margins are! -- |
David Blo
![]() Delphi Developer |
Mon, 03 Apr 2000 03:00:00 GMT
Re:Printer margins ?On 16 Oct 1997 15:35:37 +0200, bjoe...@sn.no (Bjorn-Kare Nilssen) Quote>I need to place text and images very exact on the printers canvas. You can use the Printer Escape() commadn to ask the driver how big the { Determine non-printable region on form } End; Note that NT has an alternative method for getting the offsets (See Good Luck! David Block |
Leigh Harriso
![]() Delphi Developer |
Tue, 04 Apr 2000 03:00:00 GMT
Re:Printer margins ?Bjorn-Kare Nilssen <bjoe...@sn.no> wrote in article Quote> I need to place text and images very exact on the printers canvas. aa := TPoint(Printer.PageWidth, Printer.PageHeight); Escape(Printer.Handle, GETPHYSPAGESIZE, 0, nil, @bb); Escape(Printer.Handle, GETPRINTINGOFFSET, 0, nil, @cc); Getting the exact location on the paper just means a little maths with ? Leigh Harrison |
Bjorn-Kare Nilss
![]() Delphi Developer |
Tue, 04 Apr 2000 03:00:00 GMT
Re:Printer margins ?In article <344626d2.3091...@news.nothingbutnet.net>, Quotedbl...@vdn.com (David Block) wrote: That saved me :-) -- |