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
Mike,Sorry for the delay. I was unavailable the end of last week.You are correct about the carriage returns vs. line feeds. I double-checked the data and the carriage returns are getting stripped from the text, leaving only the line feeds by the time the data is loaded into the controls. Sorry for the inaccuracy and confusion on that.Unfortunately, that doesn't get me much further in resolving the issue. If I put the carriage returns back into the data for test purposes, I still encounter various display issues with and without using the UltraTextEditor. Would it be more helpful if I sent you a project that demonstrates the behavior?
Well... I'm at a bit of a loss to explain this. If I understand you correctly, you are saying that you are assigning the UltraTextEditor the EditorComponent of the column because if you do not, then the the line breaks in your data are not displayed.
Losing line breaks usually happens when your data is using a LineFeed character only for the breaks. DotNet TextBox controls do not support this, they only support both a CarraigeReturn and a LineFeed.
By default, text fields in the grid use an EditorWithText, which is the same editor used by UltraTextEditor. So there's no way that assigning an UltraTextEditor to a column should have any effect on this at all.
So either I am misunderstanding the issue, or I am wrong about the cause of the issue in this particular case, or there is something else going on in your application besides the UltraTextEditor that is correcting the problem.
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).
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?