调用report报表服务器报表出现图相重复问题及相关样式调整的方法

来源:互联网 发布:数据分析与统计 编辑:程序博客网 时间:2024/06/05 04:38

出现问题:

一,C#WEB页远程调用报表服器上的报表,里面的Chart会出现重复(备注:但是直接输入报表服务地址http://localhost/ReportServer/Pages/ReportViewer.aspx,直接打开报表显示的图片却是正常的)

解决方式:

 <rsweb:ReportViewer ID="rvDay" runat="server" Font-Names="Verdana" Font-Size="8pt"
                                AsyncRendering="true" Width="100%" ProcessingMode="Remote" ShowFindControls="False"
                                ShowParameterPrompts="False" ShowZoomControl="False" SizeToReportContent="True"
                                ZoomMode="FullPage">
                            </rsweb:ReportViewer>
PS:
1:针对Chart图表重复的问题是设置AsyncRendering="true";
2:这时会导致整个报表样式出现问题不能自适应,此时关键点是设置 Width="100%",但注意height高度不要设置为100%,否则会出现问题,直接设个固定高度即可


0 0
原创粉丝点击