// // New methods using the Fast-reports DLL: // This form generates a clutch of different reports. // In this method, a new FastReportsWrapper is used for each selected report type. private void GenerateAllSelectedReports(TRptCalculator ACalc) { FStatusMsg = ""; if (chkHOSA.Enabled && chkHOSA.Checked) { FStatusMsg += Catalog.GetString("\r\nAll HOSAs:"); MyFastReportsPlugin = new FastReportsWrapper("HOSA"); MyFastReportsPlugin.SetDataGetter(LoadHosaReportData); MyFastReportsPlugin.GenerateReport(ACalc); } if (chkStewardship.Enabled && chkStewardship.Checked) { FStatusMsg += Catalog.GetString("\r\nStewardship Report:"); MyFastReportsPlugin = new FastReportsWrapper("Stewardship"); MyFastReportsPlugin.SetDataGetter(LoadStewardshipReportData); MyFastReportsPlugin.GenerateReport(ACalc); } if (chkFees.Enabled && chkFees.Checked) { FStatusMsg += Catalog.GetString("\r\nFees Report:"); MyFastReportsPlugin = new FastReportsWrapper("Fees"); MyFastReportsPlugin.SetDataGetter(LoadFeesReportData); MyFastReportsPlugin.GenerateReport(ACalc); } // complex way of stepping around the Windows non-thread-safe controls problem! FStatusMsg += Catalog.GetString("\r\n\r\nReport generation complete."); this.Invoke(new CrossThreadUpdate(ShowReportStatus)); }
// // New methods using the Fast-reports DLL: // This form generates a clutch of different reports. // In this method, a new FastReportsWrapper is used for each selected report type. private void GenerateAllSelectedReports(TRptCalculator ACalc) { // "Stewardship"; MyFastReportsPlugin = new FastReportsWrapper("Stewardship"); MyFastReportsPlugin.SetDataGetter(LoadStewardshipReportData); MyFastReportsPlugin.GenerateReport(ACalc); }
private void ViewReportTemplate(TRptCalculator ACalc) { String ReportName = ""; if (chkFees.Enabled && chkFees.Checked) { ReportName = "Fees"; } if (chkStewardship.Enabled && chkStewardship.Checked) { ReportName = "Stewardship"; } if (chkHOSA.Enabled && chkHOSA.Checked) { ReportName = "HOSA"; } if (ReportName == "") { return; } MyFastReportsPlugin = new FastReportsWrapper(ReportName); if (chkFees.Enabled && chkFees.Checked) { MyFastReportsPlugin.SetDataGetter(LoadFeesReportData); } if (chkStewardship.Enabled && chkStewardship.Checked) { MyFastReportsPlugin.SetDataGetter(LoadStewardshipReportData); } if (chkHOSA.Enabled && chkHOSA.Checked) { MyFastReportsPlugin.SetDataGetter(LoadHosaReportData); } MyFastReportsPlugin.DesignReport(ACalc); }