I'm new to Telerik Reporting and I was trying to check if it was possible to show custom data in a table in Reporting.
Now I have seen posts where it was mentioned that this was possible...but unfortunately I was unable to make it work at my end.
In my sample....I have already designed a template which has a blank table. Now I was trying to populate the table with data dynamically, but it didn't seem to work.
I am able to view the data from a RDBMS server and display it in “Preview” Mode in the reporting tool, but this is not what I want.
Here is my code.
int[,] arr = new int[2, 2];
arr[0, 0] = 0; arr[0, 1] = 1; arr[1, 0] = 2; arr[1, 1] = 3;
var reportPackager = new Telerik.Reporting.ReportPackager();
using (var sourceStream = System.IO.File.OpenRead("SampleReport.trdp"))
var report = (Report)reportPackager.UnpackageDocument(sourceStream);
Telerik.Reporting.Table table = report.Items.Find("table1", true) as Telerik.Reporting.Table;
table.DataSource = arr;
Can someone point me to some sample code where something like this might be happening so that I can understand where I might be wrong?
Any help would be appreciated.