Пример #1
0
        private void ManagementReport_ParametersRequestSubmit(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e)
        {
            ManagementReport report = sender as ManagementReport;
            int year  = Convert.ToInt32(report.Parameters["paramYear"].Value);
            int month = Convert.ToInt32(report.Parameters["paramMonth"].Value);

            report.Parameters["paramPaymentDate"].Value = new DateTime(year, month, 1);
        }
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            ManagementReport manReport = new ManagementReport();

            ReportPrintTool printTool = new ReportPrintTool(manReport);

            printTool.ShowPreviewDialog();
        }