Home Forums WinForms controls Xceed Grid for WinForms Report Printing Issues:

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15784 |

    I am trying to create a Report output of the content of my grid and am getting unexpected results…

    The bulk of the data is bound from a DataTable and grouped. There are also unbound ValueRows inserted into the Grid.HeaderRows and Grid.FooterRows collections, for example, we insert Report filtering criteria into ValueRow’s within the Grid.FooterRow.

    When the report is printed (or previewed), the FooterRows do not wrap to a new page if they extend beyond the available space for the page on which they started.

    Also, I tried adding a PageBreak to the first of these rows (I’ve tried both Before and After) and the result is that I get an extra blank page before the page with the FooterRows is printed.

    I’ve updated to the latest version of Xceed.Grid and the problems persist.

    Any ideas?

    – Aaron.

    Imported from legacy forums. Posted by AaronY (had 2494 views)

    User (Old forums)
    Member
    Post count: 23064

    Correction, the Report filtering criteria FooterRows are “TextRows” not “ValueRows”.

    Regards,

    – Aaron.

    Imported from legacy forums. Posted by AaronY (had 332 views)

    Xceed Support
    Member
    Post count: 5658

    There is not really a direct way to do that. If you want, for example, a wrap of the text in the TextRow, you will need to add the \n yourself. It will be the same in the Report.

    <code>
    string myString = “I’m a long string \nLet’s say him too long”;

    TextRow tRow = new TextRow( myString );

    gridControl1.FixedHeaderRows.Add( tRow );

    tRow.Height = 32;
    tRow.ReportStyle.RowHeight = 32;
    </code>

    Imported from legacy forums. Posted by CharlesB (had 3462 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.