Board index » delphi » TPrinter

TPrinter

Does anybody know why Printer.Canvas.TextWidth('some text') always
returns 0 ?

regards
Adrian
--
Adrian Cunnelly - adr...@amcsoft.demon.co.uk
Author of: NETCLB   - a shareware Netware C API Library
           WnSyscon - a Netware 2.x & 3.x admin tool for Windows
PGP 2.6.i public key available on request or via public key server

 

Re:TPrinter


Quote
Adrian Cunnelly wrote:

> Does anybody know why Printer.Canvas.TextWidth('some text') always
> returns 0 ?

> regards
> Adrian
> --
> Adrian Cunnelly - adr...@amcsoft.demon.co.uk
> Author of: NETCLB   - a shareware Netware C API Library
>            WnSyscon - a Netware 2.x & 3.x admin tool for Windows
> PGP 2.6.i public key available on request or via public key server

Works for me...

Have you set the Printer.Canvas.Font := 'Arial'; // etc.

--
============================================+===========================
Work:   mailto:Rowl...@rcp.co.uk            | Always be sincere -
Home:   mailto:Rowl...@netcomuk.co.uk       | Whether you mean it or not
Web:    http://www.netcomuk.co.uk/~rowland/ |

Other Threads