//////////////////////////////////////////////////////////////////// // Chart Example //////////////////////////////////////////////////////////////////// private void OnChartExample(object sender, EventArgs e) { ExceptionReport.Wrap("PDF Document creation falied", delegate { ChartExample CE = new ChartExample(); CE.Test(DebugCheckBox.Checked, "ChartExample.pdf"); return; }); }
//////////////////////////////////////////////////////////////////// // Chart Example //////////////////////////////////////////////////////////////////// private void OnChartExample(object sender, EventArgs e) { try { ChartExample CE = new ChartExample(); CE.Test(DebugCheckBox.Checked, "ChartExample.pdf"); return; } catch (Exception Ex) { // error exit String[] ExceptionStack = ExceptionReport.GetMessageAndStack(Ex); MessageBox.Show(this, "PDF Document creation falied\n" + ExceptionStack[0] + "\n" + ExceptionStack[1], "PDFDocument Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } }