In my application, I get a string of data from a user. I need to determine the length of the string, because if it is longer than some predetermined length, I need to insert a carriage return so that it fits inside a fixed width box on a PDF form.
All of the methods I have seen for calculating string width depend on the PaintEventArgs method that is exposed by Form or Control's Paint event. In this case, I do not have access to this event as the string is not be painted.
Can you please offer a solution?
Thanks.
----
Gerry Roston
gerry@pairofdocs.net
All of the methods I have seen for calculating string width depend on the PaintEventArgs method that is exposed by Form or Control's Paint event. In this case, I do not have access to this event as the string is not be painted.
Can you please offer a solution?
Thanks.
----
Gerry Roston
gerry@pairofdocs.net