示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            grd_nawks_rp_ rpt = new grd_nawks_rp_();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                report_frm.WindowState = FormWindowState.Normal;

                grd_nawks_rp_   less_rp     = new grd_nawks_rp_();
                ParameterFields less_params = new ParameterFields();



                //////////////////////////////////////////////////////////////////////////////////////////////////////less sanf num
                ParameterField         less_par = new ParameterField();
                ParameterDiscreteValue less_dis = new ParameterDiscreteValue();

                less_par.Name  = "sanf_num_par";
                less_dis.Value = rep_sanf_num_bx.Value;

                less_par.CurrentValues.Add(less_dis);
                less_params.Add(less_par);
                ///////////////////////////////////////////////////////////end date//////////////

                report_frm.rep_crst.ParameterFieldInfo = less_params;
                report_frm.rep_crst.ReportSource       = less_rp;
                report_frm.rep_crst.Refresh();
                report_frm.ShowDialog();
            }
            catch (Exception ff)
            {
                MessageBox.Show(ff.Message + " طباعة تقرير عدد اقل");
            }
        }