Page 1 of 1

Example for programmatic build of a simple "table" report

Posted: Mon Nov 12, 2012 4:49 pm
by skagen
Presuming I can get a dataset of my data, and I know what the header labels should be for each element of data -

Is there an example out there that will show in C# how to programmatically add -

Title Band, with some reasonable display
Table, with columns added and bound to the data (with headers)
Footer Band, with page number

The "table" being obviously the key / more difficult piece.

We're very seriously evaluating the product for our reporting solution at present for one of our core products and any information along these lines would be very appreciated.

Re: Example for programmatic build of a simple "table" repor

Posted: Tue Nov 13, 2012 2:45 pm
by HighAley
Hello.
DynamicCreateReport.zip
(15.46 KiB) Downloaded 573 times
Here is a sample project for Reports.Net. You could get some code from it.
Let us know if you will need any additional help.

Thank you.

Re: Example for programmatic build of a simple "table" repor

Posted: Tue Nov 13, 2012 9:08 pm
by skagen
Thank you, I did have marginal success using detailband, but no success using "Table". Do you have an example that does this using "Table"? (by that, I'm referring to the grid-like construct where one can resize columns at the expense/benefit of adjacent column sizes).

We're basically going to be doing ad-hoc reporting, and won't be able to predict the exact widths users will want - with "Table" rather than detail band, they can easily resize the columns.

Re: Example for programmatic build of a simple "table" repor

Posted: Wed Nov 14, 2012 8:17 am
by HighAley
Hello.

You could look at the Code tab in the Designer in will help you.

Thank you.