none
WebForms with ReportViewer RRS feed

  • Question

  • Im using webforms reportviewer in my app.

    In windows forms I have a method that will enable me to print layout mode.


    ReportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);


    However for WebForms is not done in this way. I searched for some similar method, but not found.

    I have this in ascx:

            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" ProcessingMode="Remote" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" 
                Height="485px" Width="100%" ></rsweb:ReportViewer>

    And have this in ascx.cs:

    ReportViewer1.ServerReport.ReportServerUrl = new Uri(url);
            ReportViewer1.ServerReport.ReportPath = path;
            ReportViewer1.ShowParameterPrompts = false;
            ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
            ReportParameter parameter1 = new ReportParameter("ID", idSession);
            ReportViewer1.ServerReport.SetParameters(new ReportParameter[] { parameter1 });
            ReportViewer1.ServerReport.Refresh();

    Anyone know somehow using WebForms, activate the print layout?

    Regards


    • Moved by Bob Shen Wednesday, April 10, 2013 6:26 AM
    Monday, April 8, 2013 2:44 PM

All replies