Beispiel #1
0
        private int CleanPowerPointOption(string sFilePath, List <Workshare.FCS.Lite.Base.ContentType> listContentType , out string sErrorMessage)
        {
            sErrorMessage = "";
            try
            {
                using (
                Workshare.FCS.Lite.PptDocumentReader pPowerPointDocumentReader = new Workshare.FCS.Lite.PptDocumentReader(sFilePath, true))
                {
                    sErrorMessage = "";
                    return CleanOption(pPowerPointDocumentReader, listContentType, out sErrorMessage);
                }

            }

            catch (Exception e)
            {
                sErrorMessage = e.Message;
                return -1;
            }
            
        }
Beispiel #2
0
        private int DetectPowerPointOption(string sFilePath, Workshare.FCS.Lite.Base.ContentType contentType, out string sErrorMessage)
        {
            sErrorMessage = "";
            try
            {
                using (
                Workshare.FCS.Lite.PptDocumentReader pPowerPointDocumentReader = new Workshare.FCS.Lite.PptDocumentReader(sFilePath))
                {
                    return DetectOption(pPowerPointDocumentReader, contentType, out sErrorMessage);
                }
            }

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

        }