Exemplo n.º 1
1
        public SSRSPrintPreview(SSRSCommon.ReportExecutionService.ReportExecutionService rep_exec_svc, SSRSCommon.ReportService2005.ReportingService2005 rep_svc, string surl, string rpath, SSRSCommon.RDLMetaData rdlmetadata)
        {
            InitializeComponent();

            this.rep_exec_svc = rep_exec_svc;
            this.rep_svc = rep_svc;
            this.ReportServerURL = surl;
            this.ReportPath = rpath;
            this.rdlmd = rdlmetadata;
            
            this.rep_viewer_ctrl = new Microsoft.Reporting.WinForms.ReportViewer();
            this.rep_viewer_ctrl.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote;

            var report = this.rep_viewer_ctrl.ServerReport;
            report.ReportServerUrl = new System.Uri( this.ReportServerURL );
            report.ReportPath = this.ReportPath;

            this.rep_viewer_ctrl.RefreshReport();

            

            // get the metafiles
            // In this sample we are getting only the first metafile
            preparemetafiles();

            this.UpdateUI();

        }
Exemplo n.º 2
0
        public SSRSPrintPreview(SSRSCommon.ReportExecutionService.ReportExecutionService rep_exec_svc, SSRSCommon.ReportService2005.ReportingService2005 rep_svc, string surl, string rpath, SSRSCommon.RDLMetaData rdlmetadata)
        {
            InitializeComponent();

            this.rep_exec_svc    = rep_exec_svc;
            this.rep_svc         = rep_svc;
            this.ReportServerURL = surl;
            this.ReportPath      = rpath;
            this.rdlmd           = rdlmetadata;

            this.rep_viewer_ctrl = new Microsoft.Reporting.WinForms.ReportViewer();
            this.rep_viewer_ctrl.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote;

            var report = this.rep_viewer_ctrl.ServerReport;

            report.ReportServerUrl = new System.Uri(this.ReportServerURL);
            report.ReportPath      = this.ReportPath;

            this.rep_viewer_ctrl.RefreshReport();



            // get the metafiles
            // In this sample we are getting only the first metafile
            preparemetafiles();

            this.UpdateUI();
        }