Re:Printing text files
Quote
Jim Blackstock wrote:
> I have been printing text files in Delphi using the Assignprn and
> Rewrite commands. Everything works fine apart from being able to set
> up the margins. I have looked in the help files and Delphi
> documentation, but cannot find any commands to set up the top, bottom
> ,left and right margins for the printed page. I have got around the
> problem of the left right margins by inserting spaces and tabs, but
> I'm sure there must be an easier method of doing this. Can anyone
> help?
Instead of using AssignPrn(), use the TextOut function to write on
the canvas of the printer. You can specify the X and Y coordinates,
change the fonts, and much more. Check the TPrinter object in the
help files.
--
\\\|///
\\ ~ ~ //
( @ @ )
************************-oOOo-(_)-oOOo-**************************************
Imran Hussain E-mail: imr...@ix.netcom.com
1 Executive Dr, Suite 130 Phone : (908)321-0340
Somerset, NJ 08820 Work : (908)469-4070
*********************************-Oooo.-*************************************
.oooO ( )
( ) ) /
\ ( (_/
\_)