Пример #1
0
        private void btnGenerate_Click(object sender, EventArgs e)
        {
            ItemsListSummaryRpt rpt = BuildReport();

            string filename = string.Format("{0}\\Reports\\ItemsListSummary.htm", Application.StartupPath);

            rpt.WriteHtmlReport(filename);

            RptViewer.Navigate(filename);
        }
        private void btnGenerate_Click(object sender, EventArgs e)
        {
            ItemRpt rpt = BuildReport();

            string filename = string.Format("{0}{1}Reports{2}Purchases[Item].htm",
                                            Application.StartupPath,
                                            System.IO.Path.DirectorySeparatorChar,
                                            System.IO.Path.DirectorySeparatorChar);

            rpt.WriteHtmlReport(filename);

            RptViewer.Navigate(filename);
        }