////////////////////////////////////////////////////////////////////
        // Print Example
        ////////////////////////////////////////////////////////////////////

        private void OnPrintExample(object sender, EventArgs e)
        {
            ExceptionReport.Wrap("PDF Document creation falied", delegate
            {
                PrintExample PE = new PrintExample();
                PE.Test(DebugCheckBox.Checked, "PrintExample.pdf");
                //			ProgramTestExample PTE = new ProgramTestExample();
                //			PTE.Test(DebugCheckBox.Checked, "ProgramTestExample.pdf");
                return;
            });
        }
        ////////////////////////////////////////////////////////////////////
        // Print Example
        ////////////////////////////////////////////////////////////////////

        private void OnPrintExample(object sender, EventArgs e)
        {
            try
            {
                PrintExample PE = new PrintExample();
                PE.Test(DebugCheckBox.Checked, "PrintExample.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;
            }
        }