Example #1
0
        //--- "Report..." button clicked.
        private void btnReport_Click(object sender, EventArgs e)
        {
            // Generate a report and send it to the report dialog
            string     report = GenerateReport();
            ReportForm rf     = new ReportForm(report);

            rf.ShowDialog();
        }
Example #2
0
        //--- "Report" button clicked.
        private void btnReport_Click(object sender, EventArgs e)
        {
            ReportForm rf = new ReportForm(GenerateReport());

            rf.ShowDialog();
        }