Direct print to printer canvas (tool)  

Send By: Santy Concepción
Web : N.A.
Email: SANTYCG@teleline.es
Date: 26/08/00

Tip accessed 740 times

 


Only to keep in mind this line:
  

 
     SetMapMode(Printer.Handle,MM_LOMETRIC);


 
That makes it is to establish the measure in millimeters (to see more measures, to consult the help of the Delphi of that command)
This way, will we know that in any printer we won't be small the page neither we will go outside, since depending on the printer, if works with píxels the resolution could it vary of one to other, and... to that bothers a little?
 

This way we are sure that if we make this...

     Printer.Canvas.TextOut(300,600,'HOLA');



It will be printed at 3cm of the left margin and 6cm of the superior.