<
UserControl
x:Class
=
"SilverlightApplication3.MainPage"
xmlns:telerik
=
"clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:ReportViewer
x:Name
=
"Report001"
/>
</
Grid
>
</
UserControl
>
Hi,
I get the error in the title when attempting to run a report via a webviewer.
The page gives the user an option to select 1 of 5 reports to view.
Depending on selection, the report will run ok, if a different report is then selected, it may or may not run.
The reports are contained in a separate assembly that the page references, the data source is set at run time within the assembly by setting it to a dataview.
If one of a group of 4 reports run successfully, all of those 4 will run ok, but the 5th will fail. If the 5th runs ok, the other 4 will fail.
The success or failure appears to be determined by which group the first report generated on the page is from, after a rebuild of the assembly. I have tried adding a second report viewer to the page, setting the group with 1 report to only use it, but still get this issue. I tried creating a separate page for the 1 report, but still same results, error carries across pages. It appears the fresh compile of the assembly is resetting something, and then it is tying this resource at runtime with the first report selection.
Appreciate any help I can get on this,
Thanks
<
telerik:ReportViewer
x:Name
=
"ReportViewer1"
Width
=
"Auto"
<BR>
ReportServiceUri="../ReportService.svc"<
BR
>
Report="Cavatica35ReportsLibrary.Relationships, Cavatica35ReportsLibrary,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/><
BR
>
xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
Partial
Public
Class
RwpInstructions
Inherits
Telerik.Reporting.Report
Public
Sub
New
()
InitializeComponent()
Dim
cs
As
New
ConnString
Me
.SqlDataSource1.ConnectionString = cs.AAIOMSConnString()
End
Sub
Public
Property
setWorkOrderID()
As
Integer
Get
Return
CInt
(
Me
.SqlDataSource1.Parameters.Item(
"@WorkOrderID"
).Value)
End
Get
Set
(
ByVal
workOrderID
As
Integer
)
Me
.SqlDataSource1.Parameters(
"@WorkOrderID"
).Value = workOrderID
End
Set
End
Property
End
Class