Solved

Delphi printing  HELPPPPPP !

Posted on 2004-09-28
4
181 Views
Last Modified: 2013-11-22
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
Comment
Question by:acidburn2003
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 125 total points
ID: 12174453
Try:

with Printer,Canvas do begin
  begindoc;
  TextOut(x,y,'text1');
  //etc...
  enddoc;
end;
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 12174456
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now