public void CleanTo(Stream strDest) { using (XlsxDocumentProcessor dp = new XlsxDocumentProcessor(m_data.AsStream())) { dp.Output = strDest; dp.Process(DocumentProcessingActions.Clean); strDest.Close(); } }
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(); } }
public override DocumentText Read() { using (XlsxDocumentProcessor dp = new XlsxDocumentProcessor(m_data.AsStream())) { dp.Process(DocumentProcessingActions.Discover); return dp.DocumentText; } }