How to Use an instance of TPrinter ?



How to Use an instance of TPrinter ?..

Answer / 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

More Delphi Interview Questions

How to Use InvalidateRect()to repaint the entire form?

0 Answers  


How to insert contents of a file at current position in TMemo?

0 Answers  


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!

0 Answers  


How to use the Find Error entry under the search heading of the menu bar?

0 Answers  


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

0 Answers  






How to send a response early in a web application action?

0 Answers  


Is there any way to record a keyboard macro in the IDE?

0 Answers  


How to Create a delay without a timer?

0 Answers  


what are the common Problems with printing, preview and paper size in Quick Reports?

0 Answers  


How to draw transparent text onto a TBitmap ?

0 Answers  


what are the uses of Arrow and Function Keys ?

0 Answers  


How to query dates using Day-Month-Year using local SQL ?

0 Answers  


Categories