Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Report Viewer ZoomMode not working properly.

$
0
0

Hello,

When i set ZoomMode = "PageWidth" from code behind, it set the value in zoom control but there is no effect in content.

If i change the zoom level manually (in running code) it works fine. 

I don't understand why report is not display as "PageWidth" and/or "Full Page" by default. But it works when i set Zoom Percentage = "200%".

I am using processmode = local.

Please advise what i am doing wrong.

Here is the aspx code..

<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste"> <rsweb:ReportViewer ID="rvReports" runat="server" Font-Names="Verdana" </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">                    Font-Size="8pt" Height="500px" Width="100%"</div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">                    ProcessingMode="Local" </div> <div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;" id="_mcePaste">                    ></div>

 <rsweb:ReportViewer ID="rvReports" runat="server" Font-Names="Verdana" 

                    Font-Size="8pt" Height="500px" Width="100%"

                    ProcessingMode="Local" >

 and I am seeting up ZoomMode from code behind:

rvReports.ZoomMode = ZoomMode.PageWidth; in Page_Load();



Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>