コード例 #1
0
 public void CleanTo(Stream strDest)
 {
     using (XlsxDocumentProcessor dp = new XlsxDocumentProcessor(m_data.AsStream()))
     {
         dp.Output = strDest;
         dp.Process(DocumentProcessingActions.Clean);
         strDest.Close();
     }
 }
コード例 #2
0
		public void CleanTo(Stream strDest, List<ContentType> elementsToClean)
		{
			elementsToClean = RemoveUnsupportedElements(elementsToClean);

			using (XlsxDocumentProcessor dp = new XlsxDocumentProcessor(m_data.AsStream(), elementsToClean))
			{
				dp.Output = strDest;
				dp.Process(DocumentProcessingActions.Clean);
				strDest.Close();
			}
		}
コード例 #3
0
 public override DocumentText Read()
 {
     using (XlsxDocumentProcessor dp = new XlsxDocumentProcessor(m_data.AsStream()))
     {
         dp.Process(DocumentProcessingActions.Discover);
         return dp.DocumentText;
     }
 }