3 Answers, 1 is accepted
Telerik Reporting is an embedded engine i.e. part of your application, Telerik Reports are standard .NET classes and the Web Report Viewer is a standard web control. In this line of thoughts there is nothing specific in implementing Telerik Reporting in your web application. See the following articles for more info:
Kind regards,
Steve
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
Hi steve,
I went through the 'How to: Add report viewer to a web page' .
I have created a default.aspx page and drag Reportviewer control into that page.
And adding following code into it .
protected
void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Telerik.Reporting.
ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
DataTable dt = new DataTable();
dt.Columns.Add(
"ID");
dt.Columns.Add(
"Name");
DataRow dr = dt.NewRow();
dr[0] =
"1";
dr[1] =
"orange";
dt.Rows.Add(dr);
objectDataSource.DataSource = dt;
Telerik.Reporting.
Report report1 = new Telerik.Reporting.Report();
report1.DataSource = objectDataSource;
ReportViewer1.Report = report1;
}
}
when i run the application ,then I couldn't see any data into the default.aspx page.
what should I do for displaying data?
Thanks,
Sindu.
Judging by your description you expect that the report would be data bound similar to grid e.g. autogenerate columns. However this is not the case, and in order for the report to show any data, you should add corresponding Report Items and set their values to valid Expressions from your data source.
As a new user to Telerik Reporting in order to get familiar in a fast and pretty straight-forward manner with our Reporting offering, I suggest you visit the online resources linked below:
- Online examples
- Online documentation (especially Designing Reports section)
- KB articles
- Code library
- Video Tutorials
- Blog posts
Of course, you can browse the public forum as well in order to find specific information/code sample concerning an aspect of the Reporting features. There are numerous threads which can get you started/assist you through the development process.
On a side note we kindly ask you to use just one support channel to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two threads instead of one.
Thank you for your understanding.
Kind regards,
Steve
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!