How to Use an instance of TPrinter ?

Answer Posted / alex

var
p:Tprinter;

begin
p:=Printers.Printer;

p.begindoc

p.textout(0,0,'Testing');

p.enddoc;

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Switch between different data sources?

1484


How to Extract Icons ?

1231


what are Hetergenious joins ?

1313


what is the Purpose of the interbase Client32 files?

1286


How to Specify an overlay image for a node in a treeview ?

2431






How to Keep an application in a minimized state?

1603


"Cannot load IDAPI service library" . what does this error mean?

2430


How to Get the filename and path of a local table?

1297


How to Print Delphi controls using QuickReports?

1264


How to Change the papersize of a print job ?

1356


I'm using Delphi 4/5 and have am trying to fill a RichEdit control with both European characters and Thai characters - while I can change character colours the font stays with what was selected for the control:- reLangB.SelAttributes.Color :=dCol; reLangB.SelAttributes.Name :=FontName[dLang]; reLangB.SelAttributes.Charset :=FontChar[dLang]; reLangB.SelAttributes.Style :=[]; reLangB.Lines.Add(dText); The FontName and FontChar arrays contain the font info, and using a similar method for Captions and EditBoexes works! Anybody any ideas? Thanx in advance!

2250


How to Clear the recent Documents from the Start Menu?

1203


How to Display the selected row of a DBGrid in a different color?

2143


How to create a power function?

1587


Where is TReport in Delphi 6?

1446