コード例 #1
0
        public void SimpleAtlSpreadsheetUofTranslatorExport(string bstrSourcePath, string bstrDestPath)
        {
            try
            {
                // System.Windows.Forms.MessageBox.Show("source=" + bstrSourcePath);
                // System.Windows.Forms.MessageBox.Show("dest=" + bstrDestPath);

                //FileInfo fi = new FileInfo(bstrSourcePath);
                //IUOFTranslator trans = TranslatorFactory.CheckFileTypeAndInitialize(bstrSourcePath);
                IUOFTranslator trans = new SpreadsheetTranslator();


                trans.OoxToUof(bstrSourcePath, bstrDestPath);
            }
            catch (Exception e)
            {
                System.Windows.Forms.MessageBox.Show(e.ToString());
            }
        }
コード例 #2
0
        public void SimpleAtlSpreadsheetUofTranslatorImport(string bstrSourcePath, string bstrDestPath)
        {
            try
            {
                //FileInfo FileInfoTempFile = new FileInfo(bstrSourcePath);
                //bool isReadOnly = FileInfoTempFile.IsReadOnly;
                //FileInfoTempFile.IsReadOnly = true;


                IUOFTranslator trans = new SpreadsheetTranslator();
                trans.UofToOox(bstrSourcePath, bstrDestPath);

                //FileInfoTempFile.IsReadOnly = isReadOnly;
            }
            catch (Exception e)
            {
                System.Windows.Forms.MessageBox.Show(e.ToString());
                //System.Windows.Forms.MessageBox.Show("here");
            }
        }