different textwidth between 'PRINTDIRECT=false' and 'true'

Please discuss general Delphi programming topics here.

different textwidth between 'PRINTDIRECT=false' and 'true'

HI,
for a centered text i need the TEXTWIDTH. If i use 'PRINTDIRECT=false' the TEXTWIDTH ist not correct, but then showed text is OK.
What is the reason?
Thank you for help
Attachments
TextWidth_PrintPreView.jpg (104.72 KiB) Viewed 1088 times
e.schmidtlein
Member

Posts: 2
Joined: November 29th, 2007, 5:04 pm

PixelsPerInch is the same for with and without direct print. I guess there is something wrong in your code.

Anyway, it is possible to have different text width. But I need to have your code, PrintPreview's properties, and printer settings to see whether the difference is logical or not. For example, check whether the printer's paper size is as same as PrintPreview's paper size.
Kambiz

Kambiz