Hi,
I hope someone can point me in the right direction. I have upgraded to Telerik Reports 4.0.10.310, and I've noticed that the reports are working great with stored procedures with parameters in the report library assembly. However, when I try to update the report viewer with the new report, I am getting a page error at the website, with a "Conditional compilation is turned off" error. My development environment is VS 2010, Telerik Reports 4.0.10.310, using ASP.NET with VB.NET. The code is below.
<telerik:ReportViewer ID="ReportViewer1" runat="server" |
Report="Reports.WeekDetail, Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" |
Width="7.5in" Height="450px"> |
</telerik:ReportViewer> |
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged |
ReportViewer1.Report.ReportParameters(0).Value = DropDownList1.SelectedValue |
End Sub |
In the last version, changing the report parameters updated the report without any additional code.
Thanks,
Ed
7 Answers, 1 is accepted
Thanks,
Joe
This code should not be working in the version you have specified. Please use the following code instead:
Protected
Sub
DropDownList1_SelectedIndexChanged(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
DropDownList1.SelectedIndexChanged
Dim
report
As
Telerik.Reporting.Report =
Me
.ReportViewer1.Report
report.ReportParameters[0].Value = DropDownList1.SelectedValue
End
Sub
Still this should not be related to the error in your thread's subject, which sounds like a javascript error. Do you have any javascript on your page and if so can you comment it to see if the error is gone? If still having problems, please attach a sample project in a support ticket and we would advise you accordingly.
All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Webpage error details |
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.4; chromeframe; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30729; InfoPath.2; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E) |
Timestamp: Wed, 28 Apr 2010 17:19:25 UTC |
Message: Conditional compilation is turned off |
Line: 26 |
Char: 48 |
Code: 0 |
URI: http://reports.screeneronline.com/Telerik.ReportViewer.axd?instanceID=58635775bcf94a02bde2882b9005619a&culture=en-US&uiculture=en-US&optype=Parameters |
Message: Conditional compilation is turned off |
Line: 30 |
Char: 34 |
Code: 0 |
URI: http://reports.screeneronline.com/Telerik.ReportViewer.axd?instanceID=58635775bcf94a02bde2882b9005619a&culture=en-US&uiculture=en-US&optype=Parameters |
Message: Conditional compilation is turned off |
Line: 171 |
Char: 13 |
Code: 0 |
URI: http://reports.screeneronline.com/Telerik.ReportViewer.axd?optype=Resource&version=4.0.10.310&name=Resources.Parameters.js |
Note: I haven't tried your fix yet, just wanted to post the error message.
Thanks,
Joe
- There is no additional JavaScript on the page; whatever JS is causing the problem is generated.
- When I remove the report viewer, the problem goes away
- Everything appears to be configured as in old reports
- I am not aware of any new configuration needed, and have researched a bit
Any other suggestions?
Thanks,
Joe
As we are unable to reproduce the problem on our end, we would appreciate if you provide as much info as possible about your machine, project setup and exact scenario. Generally the fastest way to get to the bottom of a problem is if we have a runnable sample that shows the issue.
Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thanks
We upgraded the reports to 4.0.10.423 and that solved the issue.
The Telerik RadControls remained at 2010.1.309.40