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

Report property dropdown list for reportview

6 Answers 181 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 10 Feb 2011, 04:14 AM
Hi,

The report drop down list in the property window for the report viewer does not work on my app or in the sample app supplied by Telerik.  I'm referring to the Report property assigned at design time. The documentation says: "Set the Report property of the viewer using the drop down list in the Properties Window".  When I click on it I get the message "Object not set to an instance of an object" in both my app and the sample app. What do I do to correct this?

Thanks.
Ron

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Feb 2011, 05:08 PM
Hello Ron,

Can you specify which is the report viewer you are referring to? I've just tested our examples with both web and windows forms viewers and both work correctly (see attached video).
The error you refer to can occur if there is a problem with the report you're trying to set. Making the assignment in code should bring the same error with full stack trace:

Report1 report1 = new Report1();
ReportViewer1.Report = report1;


Regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Ron
Top achievements
Rank 1
answered on 11 Feb 2011, 03:55 AM
Hi, Steve,

The sample app and mine run, but this error is occurring trying to do the same thing your video does, select a report for the reportviewer.  It is not occuring when the sample app or my program set the reportviewer's Report property programatically, and both display the report afterwards.

The warning message in the sample app and my app are the same in the output window:

Element 'ReportViewer' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.   C:\Program Files\Telerik\Reporting Q3 2010\Examples\VB\WebDemo\Default.aspx   22   52   C:\...\WebDemo\

The line the error above references in the sample app's default.aspx file is:
    <div id="content"><center id="center"><telerik:ReportViewer ID="ReportViewer1" runat="server"  style="border:1px solid #ccc;"
            width="99%" height="99%"/></center></div>


So apparently it's a configuration problem.  Suggestion? I'm running it in vs2008 on a win7 box/

Thanks.
Ron
0
Steve
Telerik team
answered on 14 Feb 2011, 08:16 AM
Hi Ron,

We are unable to reproduce this error on our end and it is a generic .NET error in a first place. Quick search about it shows several things to check and do, but most suggestions revolve around deleting the schema cache: http://blog.tentaclesoftware.com/archive/2010/07/21/95.aspx.

Best wishes,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Ron
Top achievements
Rank 1
answered on 15 Feb 2011, 04:47 AM
Steve,

I've read a number of your answers where you were very helpful, but frankly, that's a  pretty lame answer, that it's basically a .net error.  I tried deleting the schema cache and that didn't work. Am I really the only one who's ever had this problem??

Ron
0
Steve
Telerik team
answered on 17 Feb 2011, 04:14 PM
Hello Ron,

I'm sorry to hear you find my answer not helpful. The "Element 'x' is not a known element." is indeed a generic .NET warning and not caused by our product directly, that is why I pointed you to threads on the net that elaborate on possible reasons for it.
You say that the same warning appears in our examples, which we do not observe on our end. Can you elaborate what you have changed on your end prior starting to see the warning?
If you are still having hard time figuring this one out, please open a support ticket and attach a runnable project that exhibits the problem and we would advise you accordingly.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Mustafa
Top achievements
Rank 1
answered on 13 Nov 2013, 02:13 PM
Hello Ron
I had same problem too, try this, maybe work for you too, if you need still, 2 years passed 

From Telerik menu
Reporting 
Upgrade Wizard
Next Next Next ... Finish :)
I don't know what upgrade wizard do but it works for me 
Tags
General Discussions
Asked by
Ron
Top achievements
Rank 1
Answers by
Steve
Telerik team
Ron
Top achievements
Rank 1
Mustafa
Top achievements
Rank 1
Share this question
or