Exemple #1
0
 public Upload506FileProcessor(string filePath, Upload506Master uploadMaster)
 {
     UploadMaster = uploadMaster;
     FilePath     = filePath;
     Init();
     m_ExcelFileWrapper = new ExcelFileWrapper();
 }
Exemple #2
0
 public Upload506FileProcessor(Stream stream, string fileName, Upload506Master uploadMaster)
 {
     UploadMaster  = uploadMaster;
     FilePath      = fileName;
     m_InputStream = stream;
     //UploadMaster.InputStream = m_InputStream;
     Init();
     m_ExcelFileWrapper = new ExcelFileWrapper();
 }
Exemple #3
0
 public Upload506FileProcessor(Upload506Master uploadMaster)
 {
     UploadMaster = uploadMaster;
     if (UploadMaster.StoredData is IWorkbook)
     {
         m_ExcelFileWrapper = new ExcelFileWrapper((IWorkbook)UploadMaster.StoredData);
         m_ExcelFileWrapper.ShoudDisposeWorkbook = false;
         InitCellIndicesFromWorkbook();
     }
     else
     {
         m_ExcelFileWrapper = new ExcelFileWrapper();
         m_DbaseFile        = (FlatDatabase.DBase.File)UploadMaster.StoredData;
         ValidateHeader(m_DbaseFile);
     }
     Init();
 }