Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Using an UltraTextEditor in a Grid cell doesn't display text in UltraPrintPreviewDialog if the text is over 32,490 characters
posted

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

Parents
  • 469350
    Offline posted

    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?

     

Reply Children