locked
Reportviewer Formatting help. RRS feed

  • Question

  • User1447854015 posted

    Hi Everyone,

    I have two datatables I want to join to a report, the onlything is I need a different kind of format then I am used to. I need a table per datarow and only four tables per page. Below every pair of tables is another table using the second datatable. It is hard to explain but here is kind of what I mean:

    +---------------------------------------------------------------------------+
    |DataTable 1 Row 1 Title                 |  DataTable 1 Row 2 Title         |
    +----------------------------------------+----------------------------------+
    |Cell 1                                  |Cell 1                            |
    |Cell 2                                  |Cell 2                            |
    |Cell 3                                  |Cell 3                            |
    |Cell 4                                  |Cell 4                            |
    |----------------------------------------+----------------------------------+
    |                            DataTable 2 Row 1 Title                        |
    +---------------------------------------------------------------------------|
    |                                   Cell 1                                  |
    |                                   Cell 2                                  |
    |                                   Cell 3                                  |
    +----------------------------------------------------------------------------
    |DataTable 1 Row 3 Title                 |  DataTable 1 Row 4 Title         |
    +----------------------------------------+----------------------------------+
    |Cell 1                                  |Cell 1                            |
    |Cell 2                                  |Cell 2                            |
    |Cell 3                                  |Cell 3                            |
    |Cell 4                                  |Cell 4                            |
    |----------------------------------------+----------------------------------+
    |                            DataTable 2 Row 2 Title                        |
    +---------------------------------------------------------------------------|
    |                                   Cell 1                                  |
    |                                   Cell 2                                  |
    |                                   Cell 3                                  |
    +----------------------------------------------------------------------------
    

    If anyone can even understand what I need it would be very helpful if someone could point me in the right direction.

    Thanks!

    Friday, April 27, 2012 1:11 PM

Answers

  • User1447854015 posted

    I ended up having to make subreports and a buisness class to associate the data with the reports. Each report just took in parameters and handled the data dispensing in the ReportViewer.LocalReport.SubReportProcessing event.

    If anyone has any other more efftective was of doing this I would love to hear them. For now though I will mark this as answered.
    Thanks!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 3, 2012 8:23 AM