I asked this question some time ago on the MSDN forums to no avail. I gave up in the end, settling for a make do situation. But having come across this forum I thought, heck, I'll ask it again
The situation is this.
I have a Crystal Report and I have a .NET application. What I want to achieve is a perfect (or as near as possible) match between a CRTextbox on the report (which takes a field from a database) and a RichTextBox in the application. Essentially, I want to know how many lines will fit in the CR textbox and match it with the RTB. So if a user goes over this 'line limit' I can warn them. Unfortunately, the box in the report can't just stretch as it has been designed to be such a size.
Currently, I match up the fonts, get a rough line number whilst editing the report itself, and then use that line number to limit the rtb. However, this limits the text box to plain text. No text formatting etc.
Ideally, I would like to supply the width and height taken from Crystal Reports and some how use them in .NET to give the user all the Rich Text formatting but with warning if they stray over the box size.
Does that make sense? lol.
Any thoughts, nudges in a certain direction, ideas, etc will be appreciated.
Jon.