internal void PrintDigitalReport()
        {
            // Generate the report
            DigitalReport rpt = new DigitalReport();

            rpt.CreateDocument();

            // Generate the cover
            CoverReport cover = new CoverReport(rpt.DisplayName);

            cover.CreateDocument();

            // Merge the documents
            rpt.Pages.Insert(0, cover.Pages[0]);

            // Open the document into the repport viewer plug-in
            StudioContext.MainView.OpenPluginModule(PluginManager.PLUGIN_REPORTVIEWER, rpt);
        }
        internal void PrintDigitalReport()
        {
            try
            {
                // Generate the report
                DigitalReport rpt = new DigitalReport();
                rpt.CreateDocument();

                // Generate the cover
                CoverReport cover = new CoverReport(rpt.DisplayName);
                cover.CreateDocument();

                // Merge the documents
                rpt.Pages.Insert(0, cover.Pages[0]);

                // Open the document into the repport viewer plug-in
                StudioContext.OpenPluginModule(PluginManager.PLUGIN_REPORTVIEWER, rpt);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }