Exemplo n.º 1
0
        private void navBarItemBirthdayReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            DialogResult dr   = new DialogResult();
            var          form = new FormSelectMonths();

            dr = form.ShowDialog();
            if (dr == DialogResult.OK)
            {
                var report = new XtraReports.XtraReportBirthdayList(form.birthdayMonth1, form.birthdayMonth2);
                report.CreateDocument();
                documentViewer1.DocumentSource = report;
            }
        }
Exemplo n.º 2
0
 private void navBarItemBirthdayReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     try
     {
         DialogResult dr   = new DialogResult();
         var          form = new FormSelectMonths();
         dr = form.ShowDialog();
         if (dr == DialogResult.OK)
         {
             var report = new XtraReports.XtraReportBirthdayList(form.birthdayMonth1, form.birthdayMonth2);
             report.CreateDocument();
             documentViewer1.DocumentSource = report;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(MiscStuff.GetAllMessages(ex));
     }
 }