Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

Delphi printing HELPPPPPP !

Hy there,

I need to print from a form in delphi. For example i have the text1, text2, text3

text1                           text2                           text3
(x,y)                           (x,y)                            (x,y)

where x and y are coordonates of where the text will be printed on an A4 paper. How can i make this ? To print where i want ? THX for any help
0
acidburn2003
Asked:
acidburn2003
  • 2
1 Solution
 
LRHGuyCommented:
Try:

with Printer,Canvas do begin
  begindoc;
  TextOut(x,y,'text1');
  //etc...
  enddoc;
end;
0
 
LRHGuyCommented:
Of course, you can select the printer, font, size, etc too... But using TextOut let's you position the output where you want it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now