Beispiel #1
0
 private int CleanExcelOption(string sFilePath, List<Workshare.FCS.Lite.Base.ContentType> listContentType, out string sErrorMessage)
 {
     sErrorMessage = "";
     try
     {
         using (
         Workshare.FCS.Lite.ExcelDocumentReader pExcelDocumentReader = new Workshare.FCS.Lite.ExcelDocumentReader(sFilePath, true))
         {
             sErrorMessage = "";
             return CleanOption(pExcelDocumentReader, listContentType, out sErrorMessage);
         }
     }
     catch (Exception e)
     {
         sErrorMessage = e.Message;
         return -1;
     }
 }
Beispiel #2
0
        private int DetectExcelOption(string sFilePath, Workshare.FCS.Lite.Base.ContentType contentType, out string sErrorMessage)
        {
            sErrorMessage = "";
            try
            {
              using (
              Workshare.FCS.Lite.ExcelDocumentReader pExcelDocumentReader = new Workshare.FCS.Lite.ExcelDocumentReader(sFilePath))
              {
                    return DetectOption(pExcelDocumentReader, contentType, out sErrorMessage);
              } 

            }

            catch (Exception e)
            {
                sErrorMessage = e.Message;
                return -2;
            }
            
   
        }