Hello,
I'm new here and I use PrintPreview for the first time.
My question is, how can I calculate the height (and the width) of a given text at runtime?
I want to use PrintPreview for printing reports based on a database.
The printing text has sometimes 1 line, then 2 or more lines
like
This text has one line.
-----------------------------
This text has line 1
and line 2
----------------------------
and so on
How can I calculate the different heights (to draw the DOT lines)?
printpreview1.TextHeight doesn't work.
I hope you uderstand what I mean.
I searched here in the forum but I found no solution for this problem.
Many thanks in advance
Thomas