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

How to create radchart programmatically inside reportviewer

3 Answers 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aewin
Top achievements
Rank 1
Aewin asked on 01 Aug 2012, 05:57 AM
Hi Telerik Team,
I created RadChart and text report programmatically. I need to move my chart and text report inside of a ReportViewer for exporting that to Excel,pdf etc... 
But I am not sure how to make that and please help.
Please get the attached  sample.

  

3 Answers, 1 is accepted

Sort by
0
Hassan
Top achievements
Rank 1
answered on 03 Aug 2012, 08:03 AM
Since you have the report object, you need simply do the following:
this.reportViewer.Report = myReportObject;

if you have the latest version, it would be:
this.reportViewer.ReportSource = new InstanceReportSource { ReportDocument = myReportObject }; 
0
Aewin
Top achievements
Rank 1
answered on 08 Aug 2012, 12:13 PM
Hi,

When I install reporting tool license version,the following error comes out.
'Error-2147217843 :failed to create SQL database: AdventureWorks,error detail:unknown error.'

But trial version is installed successfully .

I still cannot see this.ReportViewer1.Report nor this.ReportViewer1.ReportSource. Please get the attached file.

I need it urgently.Please help me.
0
Elian
Telerik team
answered on 10 Aug 2012, 04:22 PM
Hello Aewin,

A quick search on the error you have received shows that this problem might be caused by insufficient privileges to work with the databases in SQL Server. You can download the Microsoft SQL Server Management Studio (if you don't have it) and try to connect to the local instance of the SQL Server and check whether you have the requested permissions for the master database.
Please verify:
  1. That the SQL Server is running
  2. Your windows account have correct privileges to login to the SQL Server
  3. Check the SQL Server role of the account - should be with distinct rights to create/modify databases
  4. That your account is db_owner of the AdwentureWorks database
If you have verified the above and the problem persists, please use the following line in cmd prompt to install the product in order to provide more details in the log file and attach it here:
msiexec -i path_to\Telerik_Reporting_Q1_2011_DEV.msi -l*xv install.log

As to the ReportViewer missing properties, please review How to: Add report viewer to a web page
If the problem persists, it would be best if you open a support ticket and attach us a sample project that we can inspect locally. 
 
All the best,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Aewin
Top achievements
Rank 1
Answers by
Hassan
Top achievements
Rank 1
Aewin
Top achievements
Rank 1
Elian
Telerik team
Share this question
or