Beispiel #1
0
        public void RunReport()
        {
            RViewer.LocalReport.Refresh();
            RViewer.RefreshReport();

            PageSettings ps = new PageSettings();

            ps.Margins.Top       = 25;
            ps.Margins.Bottom    = 25;
            ps.Margins.Left      = 25;
            ps.Margins.Right     = 25;
            ps.Landscape         = false;
            ps.PaperSize.RawKind = (int)PaperKind.Custom;
            ps.PaperSize         = new PaperSize("User-Defined", 425, 550);
            RViewer.SetPageSettings(ps);
        }
Beispiel #2
0
        public void PrintReport()
        {
            ReportParameter[] param = new ReportParameter[1];
            param[0] = new ReportParameter("show_item", "true");
            RViewer.LocalReport.SetParameters(param);
            RViewer.LocalReport.Refresh();
            RViewer.RefreshReport();

            PageSettings ps = new PageSettings();

            ps.Margins.Top       = 25;
            ps.Margins.Bottom    = 25;
            ps.Margins.Left      = 25;
            ps.Margins.Right     = 25;
            ps.Landscape         = false;
            ps.PaperSize.RawKind = (int)PaperKind.Custom;
            ps.PaperSize         = new PaperSize("User-Defined", 425, 550);
            RViewer.SetPageSettings(ps);
        }
Beispiel #3
0
        public void RunReport()
        {
            RViewer.LocalReport.Refresh();
            RViewer.RefreshReport();

            System.Drawing.Printing.PageSettings ps = new System.Drawing.Printing.PageSettings();
            ps.Landscape             = false;
            ps.PaperSize.RawKind     = (int)System.Drawing.Printing.PaperKind.Custom;
            ps.PaperSize             = new System.Drawing.Printing.PaperSize("User-Defined", 850, 550);
            ps.Margins.Top           = 2;
            ps.Margins.Bottom        = 2;
            ps.Margins.Left          = 2;
            ps.Margins.Right         = 2;
            RViewer.ShowBackButton   = false;
            RViewer.ShowFindControls = false;
            //RViewer.ShowPageNavigationControls = false;
            RViewer.ShowRefreshButton = false;
            RViewer.ShowStopButton    = false;
            RViewer.SetPageSettings(ps);
        }