Hi,
I've got data (from several tables) that is retrieved, loaded into a dataset, set as the datasource for UltraGridPrintDocument.Grid and displayed using the UltraPrintPreviewDialog. One field from one table in the data can be extremely long, and it can contain limited formatting ([CRLF], for example). Because of the formatting, I need to set the style of the column, and use an editorcomponent for the column. I've tried the display without doing this, and the text all appears, but [CRLF] formatting is stripped, leaving the data difficult to read. When I use the editor, the data maintains its limited formatting and is readable. The problem is that if the text is more than 32,490 characters long, none of it displays in the preview. The space is reserved for it (as in the preview may have multiple "blank" pages where that data should display), but the text is not visible.
Is this a known limitation/behavior? If so, can someone point me to the documentation for it? I looked, but I may have been looking in the wrong place.
Second, can anyone think of a way around this? (Currently, I am explicitly having to truncate the data at the limit, but because of what the data means to the reader, I'd prefer not to do that.)
Thanks,-amanda
Hi Amanda,
What kind of editor are you assigning to the EditorComponent property?
I think there is a limitation to the amount of text that the DrawString method in DotNet can handle. But I'm pretty sure the Infragistics framework handles this by just reducing the size of the string. So it should not be blank.
Also, what version of the controls are you using?
Hi Mike,
Thanks for responding. This is the editor I'm using: Infragistics.Win.UltraWinEditors.UltraTextEditor
I've tested using two different versions (one we use in a shipping released/revision cycle and one that is for our next release). Both exhibit the same behavior from what testing I've done. The versions are 7.3 (7.3.20073.38) and and 10.3 (10.3.20103.1000).