I would like to include ReportViewer control in the Parametric Search portlet rendering ASCX file.
I placed RDLC file in the content repository and it is being retrieved properly as binary steam
<%
....
//retrieve rdlc file
string Path = "/Root/Global/renderers/ReportFiles/Report1.rdlc"
Node node = Node.LoadNode(Path);
var binaryData = node.GetBinary("Binary");
System.IO.Stream stream = binaryData.GetStream();
//setup report
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.LoadReportDefinition(stream);
ReportDataSource datasource = new ReportDataSource("Results", dsResults.Tables[0]);
ReportViewer1.LocalReport.DataSources.Add(datasource);
%>
<div id="rptvwr">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="600">
</rsweb:ReportViewer>
</div>
This results in 'Illegal characters in path' error message.
After I changed my code around a bit and I now have the following situation:
when I use
<asp:Scriptmanager>
tag required by ReportViewer control, I receive an error message that only one ScriptManager per page is allowedwhen I use
<asp:ScriptManagerProxy>
tag, I receive an error message statingPortlet Error: The Report Viewer Web Control requires a System.Web.UI.ScriptManager on the web form.