Exemplo n.º 1
0
        private void btnPrintReport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ReportParameter[] ReportParams = new ReportParameter[]
            {
                new ReportParameter("EventDate", Config.EventDate),
                new ReportParameter("title", Config.EventName),
            };
            frm_Report frm = new frm_Report();

            frm.PreviewReport(ReportParams);
        }
Exemplo n.º 2
0
 private void btnPrintReport_Click(object sender, EventArgs e)
 {
     try
     {
         if (Db.HasRight(SharedParam.CurrentUser.RoleId, 2, 5, "PrintAgentPreviewReport"))
         {
             //ReportParameter[] ReportParams = new ReportParameter[]
             //                   {
             //                    new ReportParameter("EventDate",Config.EventDate),
             //                    new ReportParameter("title",Config.EventName),
             //                   };
             frm_Report frm = new frm_Report();
             frm.PreviewEntireReceptionInfoReport(dgv_Reception["Entry_doc_no", dgv_Reception.CurrentRow.Index].Value.ToString(), null);
         }
         else
         {
             MessageBox.Show("ليس لديك الصلاحية الكافية");
             return;
         }
     }
     catch
     { }
 }