Esempio n. 1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            var saveFileFormat = Load_SaveFileFormatComboBox();
            try
            {
                
                var fileDataLoader = new LoadXlsxData(xlsxFileFullPath, exportFolderPath);
                fileDataLoader.SaveSheetsIntoDiffTxtFiles(saveFileFormat);
                MessageBox.Show("Export Finished!", "Infomation", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch(System.IO.IOException ioException)
            {
                MessageBox.Show(ioException.ToString(), "File Load Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch(Exception exception)
            {
                MessageBox.Show(exception.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var xlsxLoad = new LoadXlsxData(@"D:\Users\Caspar\Desktop\1.xlsx", @"D:\Users\Caspar\Desktop");
            xlsxLoad.SaveSheetsIntoDiffTxtFiles(SaveFileFormat.Txt);

        }