Example #1
0
        public void PrintInvoice(patient patient, List <temp_service> data)
        {
            InvoiceReport report = new InvoiceReport();

            foreach (DevExpress.XtraReports.Parameters.Parameter p in report.Parameters)
            {
                p.Visible = false;
            }
            report.InitData(patient.firstname, patient.lastname, patient.email, data);
            documentViewer1.DocumentSource = report;
            report.CreateDocument();
        }