HI,
Iam facing problem with update panel.I has a reportviewer and a updatepanel.Updatepanel consists of Reportviewer.Whenever i click on Print Option of Reportviewer,Postback ocurs But no print dialog appears.(So no print).How to Print report when it is is in updatepanel.
When i remove updatepanel Print wrks .But when i keep it in updatepanel NO PRINT ocurs
Plz help ...It is Very urgent
With regards,
Mahender
Any chance you can post the code?<asp:UpdatePanelID="ReportViewerUpdatePanel"runat="server"UpdateMode="Conditional "ChildrenAsTriggers="true"><ContentTemplate><asp:UpdateProgressID="ReportViewerUpdateProgress"runat="server"><ProgressTemplate><divstyle="display:block; "><center>
Loading ...
<imgalt=""src="Images/Updatepanel/loading.gif"/></center></div></ProgressTemplate></asp:UpdateProgress>
<rsweb:ReportViewerID="ReportViewer1"runat="server"BackColor="WhiteSmoke"ProcessingMode="Remote"Height="100%"ShowBackButton="true"ShowFindControls="false"DocumentMapWidth="50%"ShowParameterPrompts="false"ShowRefreshButton="true"ShowReportBody="false"ShowPromptAreaButton="true"ShowToolBar="true"ShowExportControls="true"ShowZoomControl="false"Width="100%"EnableTheming="true"ShowCredentialPrompts="true"DocumentMapCollapsed="true"LinkActiveColor="Black"LinkActiveHoverColor="Chocolate"LinkDisabledColor="Gray"ExportContentDisposition="AlwaysInline"EnableViewState="true"ShowPrintButton="true"><ServerReportReportServerUrl="http://localhost/ReportServer$SQL"/></rsweb:ReportViewer>
</ContentTemplate><Triggers><asp:AsyncPostBackTriggerControlID="DropdownMenuLinkButton"EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
Incode behind of One event.In my case Buttonclick
this is Code
ReportViewer1.ProcessingMode =
ProcessingMode.Remote;Uri u =newUri("http://localhost/ReportServer$SQL");ReportViewer1.ServerReport.ReportServerUrl = u;
ReportViewer1.ServerReport.ReportPath =
"/thad/Report1";
ReportViewer1.AsyncRendering =
true;ReportViewer1.ShowBackButton =
true;ReportViewer1.ShowFindControls =
true;ReportViewer1.ShowRefreshButton =
true;ReportViewer1.ShowPrintButton =
true;ReportViewer1.ShowReportBody =
true;ReportViewer1.ShowPromptAreaButton =
true;ReportViewer1.ShowToolBar =
true;// ReportViewer1.ShowExportControls = true;ReportViewer1.ShowZoomControl =
true;ReportViewer1.ToolTip =
"Report Viewer";ReportViewer1.Width =
Unit.Percentage(100);ReportViewer1.Height =
Unit.Percentage(100);//ReportViewer1.EnableTheming = true;ReportViewer1.ShowCredentialPrompts =
true;ReportViewer1.LinkActiveColor = System.Drawing.
Color.Black;ReportViewer1.LinkActiveHoverColor = System.Drawing.
Color.Chocolate;ReportViewer1.LinkDisabledColor = System.Drawing.
Color.Gray;ReportViewer1.ShowPrintButton =
true;<asp:UpdatePanelID="ReportViewerUpdatePanel"runat="server"UpdateMode="Conditional "ChildrenAsTriggers="true"><ContentTemplate><asp:UpdateProgressID="ReportViewerUpdateProgress"runat="server"><ProgressTemplate><divstyle="display:block; "><center>
Loading ...
<imgalt=""src="Images/Updatepanel/loading.gif"/></center></div></ProgressTemplate></asp:UpdateProgress>
<rsweb:ReportViewerID="ReportViewer1"runat="server"BackColor="WhiteSmoke"ProcessingMode="Remote"Height="100%"ShowBackButton="true"ShowFindControls="false"DocumentMapWidth="50%"ShowParameterPrompts="false"ShowRefreshButton="true"ShowReportBody="false"ShowPromptAreaButton="true"ShowToolBar="true"ShowExportControls="true"ShowZoomControl="false"Width="100%"EnableTheming="true"ShowCredentialPrompts="true"DocumentMapCollapsed="true"LinkActiveColor="Black"LinkActiveHoverColor="Chocolate"LinkDisabledColor="Gray"ExportContentDisposition="AlwaysInline"EnableViewState="true"ShowPrintButton="true"><ServerReportReportServerUrl="http://localhost/ReportServer$SQL"/></rsweb:ReportViewer>
</ContentTemplate><Triggers><asp:AsyncPostBackTriggerControlID="DropdownMenuLinkButton"EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
Incode behind of One event.In my case Buttonclick
this is Code
ReportViewer1.ProcessingMode =
ProcessingMode.Remote;Uri u =newUri("http://localhost/ReportServer$SQL");ReportViewer1.ServerReport.ReportServerUrl = u;
ReportViewer1.ServerReport.ReportPath =
"/thad/Report1";
ReportViewer1.AsyncRendering =
true;ReportViewer1.ShowBackButton =
true;ReportViewer1.ShowFindControls =
true;ReportViewer1.ShowRefreshButton =
true;ReportViewer1.ShowPrintButton =
true;ReportViewer1.ShowReportBody =
true;ReportViewer1.ShowPromptAreaButton =
true;ReportViewer1.ShowToolBar =
true;// ReportViewer1.ShowExportControls = true;ReportViewer1.ShowZoomControl =
true;ReportViewer1.ToolTip =
"Report Viewer";ReportViewer1.Width =
Unit.Percentage(100);ReportViewer1.Height =
Unit.Percentage(100);//ReportViewer1.EnableTheming = true;ReportViewer1.ShowCredentialPrompts =
true;ReportViewer1.LinkActiveColor = System.Drawing.
Color.Black;ReportViewer1.LinkActiveHoverColor = System.Drawing.
Color.Chocolate;ReportViewer1.LinkDisabledColor = System.Drawing.
Color.Gray;ReportViewer1.ShowPrintButton =
true;<asp:UpdatePanelID="ReportViewerUpdatePanel"runat="server"UpdateMode="Conditional "ChildrenAsTriggers="true"><ContentTemplate><asp:UpdateProgressID="ReportViewerUpdateProgress"runat="server"><ProgressTemplate><divstyle="display:block; "><center>
Loading ...
<imgalt=""src="Images/Updatepanel/loading.gif"/></center></div></ProgressTemplate></asp:UpdateProgress>
<rsweb:ReportViewerID="ReportViewer1"runat="server"BackColor="WhiteSmoke"ProcessingMode="Remote"Height="100%"ShowBackButton="true"ShowFindControls="false"DocumentMapWidth="50%"ShowParameterPrompts="false"ShowRefreshButton="true"ShowReportBody="false"ShowPromptAreaButton="true"ShowToolBar="true"ShowExportControls="true"ShowZoomControl="false"Width="100%"EnableTheming="true"ShowCredentialPrompts="true"DocumentMapCollapsed="true"LinkActiveColor="Black"LinkActiveHoverColor="Chocolate"LinkDisabledColor="Gray"ExportContentDisposition="AlwaysInline"EnableViewState="true"ShowPrintButton="true"><ServerReportReportServerUrl="http://localhost/ReportServer$SQL"/></rsweb:ReportViewer>
</ContentTemplate><Triggers><asp:AsyncPostBackTriggerControlID="DropdownMenuLinkButton"EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
Incode behind of One event.In my case Buttonclick
this is Code
ReportViewer1.ProcessingMode =
ProcessingMode.Remote;Uri u =newUri("http://localhost/ReportServer$SQL");ReportViewer1.ServerReport.ReportServerUrl = u;
ReportViewer1.ServerReport.ReportPath =
"/thad/Report1";
ReportViewer1.AsyncRendering =
true;ReportViewer1.ShowBackButton =
true;ReportViewer1.ShowFindControls =
true;ReportViewer1.ShowRefreshButton =
true;ReportViewer1.ShowPrintButton =
true;ReportViewer1.ShowReportBody =
true;ReportViewer1.ShowPromptAreaButton =
true;ReportViewer1.ShowToolBar =
true;// ReportViewer1.ShowExportControls = true;ReportViewer1.ShowZoomControl =
true;ReportViewer1.ToolTip =
"Report Viewer";ReportViewer1.Width =
Unit.Percentage(100);ReportViewer1.Height =
Unit.Percentage(100);//ReportViewer1.EnableTheming = true;ReportViewer1.ShowCredentialPrompts =
true;ReportViewer1.LinkActiveColor = System.Drawing.
Color.Black;ReportViewer1.LinkActiveHoverColor = System.Drawing.
Color.Chocolate;ReportViewer1.LinkDisabledColor = System.Drawing.
Color.Gray;ReportViewer1.ShowPrintButton =
true;
No comments:
Post a Comment