This is a migrated thread and some comments may be shown as answers.

Telerik Report -implementation

3 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sindu
Top achievements
Rank 1
Sindu asked on 25 Jan 2012, 10:31 AM

Hi,

I am a newer in the Telerik Report.
I need to implement Telerik Report in the Asp.net -2010 ajax web application.
How can i implement Telerik Report in the application using Report viewer?

Thanks
sindu.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Jan 2012, 10:37 AM
Hi sindu,

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!

0
Sindu
Top achievements
Rank 1
answered on 25 Jan 2012, 10:50 AM

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.

0
Steve
Telerik team
answered on 25 Jan 2012, 11:01 AM
Hello 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:


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!

Tags
General Discussions
Asked by
Sindu
Top achievements
Rank 1
Answers by
Steve
Telerik team
Sindu
Top achievements
Rank 1
Share this question
or