Exemplo n.º 1
0
        private void btnCreateReport_Click(object sender, EventArgs e)
        {
            string html     = CreateHtmlReport();
            string tempFile = System.IO.Path.GetTempFileName();

            using (System.IO.StreamWriter sw = System.IO.File.CreateText(tempFile))
            {
                sw.Write(html);
            }

            Report.frmReportViewer f = new TigerClient.Report.frmReportViewer();
            //f.ShowHtml(html);
            f.ShowFile(tempFile);
        }
        private void btnCreateReport_Click(object sender, EventArgs e)
        {
            string html = CreateHtmlReport();
            string tempFile = System.IO.Path.GetTempFileName();
            using (System.IO.StreamWriter sw = System.IO.File.CreateText(tempFile))
            {
                sw.Write(html);
            }

            Report.frmReportViewer f = new TigerClient.Report.frmReportViewer();
            //f.ShowHtml(html);
            f.ShowFile(tempFile);
        }