private void btExportHTML_Click(object sender, System.EventArgs e) { try { string l_Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "tmpSourceGridExport.htm"); using (System.IO.FileStream l_Stream = new System.IO.FileStream(l_Path, System.IO.FileMode.Create, System.IO.FileAccess.Write)) { SourceGrid.Exporter.HTML html = new SourceGrid.Exporter.HTML(SourceGrid.Exporter.ExportHTMLMode.Default, System.IO.Path.GetTempPath(), "", l_Stream); html.Export(grid1); l_Stream.Close(); } DevAge.Shell.Utilities.OpenFile(l_Path); } catch (Exception err) { DevAge.Windows.Forms.ErrorDialog.Show(this, err, "HTML Export Error"); } }
private void btExportHTML_Click(object sender, System.EventArgs e) { try { string l_Path = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "tmpSourceGridExport.htm"); using (System.IO.FileStream l_Stream = new System.IO.FileStream(l_Path,System.IO.FileMode.Create,System.IO.FileAccess.Write)) { SourceGrid.Exporter.HTML html = new SourceGrid.Exporter.HTML(SourceGrid.Exporter.ExportHTMLMode.Default, System.IO.Path.GetTempPath(), "", l_Stream); html.Export(grid1); l_Stream.Close(); } DevAge.Shell.Utilities.OpenFile(l_Path); } catch(Exception err) { DevAge.Windows.Forms.ErrorDialog.Show(this,err,"HTML Export Error"); } }