Thank you all for these great anwsers, It'll help me. Christian
----- Original Message ----- From: Nesler, Thomas J To: [email protected] Sent: Wednesday, August 03, 2005 12:53 PM Subject: RE: [delphi-en] Matrix printer component? Hi Christian! -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf No just printing a few lines. Thanks I'll keep my searches. >>>>>>>>>>>>>>> Here is a routine I use when I want to print directly to a printer: //This is a partial file. You must add printers to your uses clause. //Button1click procedure has the print routine. unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,printers, StdCtrls; . . . procedure TForm1.Button1Click(Sender: TObject); Var I : Integer ; begin with Printer do begin BeginDoc; Canvas.font.size := 12; For I:= 0 to 8 do Canvas.textout(I*572,I*572,IntToStr(I)); EndDoc; end; end; .... ***************************************************** The printline shows the X and Y coordinates and then thestring you want printed: Canvas.textout(X,Y,"This is your string"); To change the measurement unit to Millimeters use this line: SetMapMode(Printer.Handle,MM_LOMETRIC); This changes the numbers from Pixels to Millimeters. Which is easier to use. Hope this helps! Tom Nesler ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] SPONSORED LINKS C programming language Computer programming languages The c programming language C programming language List of programming languages Delphi programmer ------------------------------------------------------------------------------ YAHOO! GROUPS LINKS a.. Visit your group "delphi-en" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ------------------------------------------------------------------------------ [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12ht89ulb/M=362131.6882499.7825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1123170876/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

