Beispiel #1
0
        public static void ExportToHTML(DataGridView DataGV, string Name)
        {
            DGVEHtmlExportSettings exportSettings = new DGVEHtmlExportSettings();

            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            saveFileDialog1.FileName   = Name;
            saveFileDialog1.DefaultExt = "html";
            saveFileDialog1.ShowDialog();

            exportSettings.ExportFileName = saveFileDialog1.FileName; //Export file name

            exportSettings.OpenFileAfterGeneration = true;            //Open generated file after export
            //Set other settings here...
            DGVEHtmlExporter exporter = new DGVEHtmlExporter();

            exporter.Export(DataGV, exportSettings);
        }
Beispiel #2
0
        public static void ExportToHTML(DataGridView DataGV, string Name)
        {
            DGVEHtmlExportSettings exportSettings = new DGVEHtmlExportSettings();

            SaveFileDialog saveFileDialog1 = new SaveFileDialog();
            saveFileDialog1.FileName = Name;
            saveFileDialog1.DefaultExt = "html";
            saveFileDialog1.ShowDialog();

            exportSettings.ExportFileName = saveFileDialog1.FileName;//Export file name

            exportSettings.OpenFileAfterGeneration = true; //Open generated file after export
            //Set other settings here...
            DGVEHtmlExporter exporter = new DGVEHtmlExporter();
            exporter.Export(DataGV, exportSettings);
        }