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);
        }
Beispiel #4
0
        protected void btnClear_Click(object sender, EventArgs e)
        {
            try
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Highliter", "ApplyScript();", true);

                txtType.Text      = "";
                txtPI.Text        = "";
                txtDept.Text      = "";
                txtCategory.Text  = "";
                txtEndDate.Text   = "";
                txtStartDate.Text = "";

                foreach (ListItem item in chkCategory.Items)
                {
                    item.Selected = false;
                }
                foreach (ListItem item in chkDept.Items)
                {
                    item.Selected = false;
                }
                foreach (ListItem item in chkPI.Items)
                {
                    item.Selected = false;
                }
                foreach (ListItem item in chkType.Items)
                {
                    item.Selected = false;
                }
                hidCategory.Value = "";
                hidDept.Value     = "";
                hidPI.Value       = "";
                hidType.Value     = "";

                RViewer.Reset();
                RViewer.Visible = false;
            }
            catch (Exception ex)
            {
            }
        }