private bool _TryLoadCommentsXml(ZipEntry entry) { var match = _commentsPathPattern.Match(entry.fileName); if (!match.Success) { return(false); } var path = entry.fileName; var reader = _CreateXmlReader(entry); _commentsReaders.Add(path, reader); return(true); }
private bool _TryLoadSheetRels(ZipEntry entry) { var match = _sheetRelsPathPattern.Match(entry.fileName); if (!match.Success) { return(false); } var fileName = Path.GetFileNameWithoutExtension(entry.fileName); var sheetPath = "xl/worksheets/" + fileName; var reader = _CreateXmlReader(entry); _sheetRelsReaders.Add(sheetPath, reader); return(true); }
private bool _TryLoadSheetXml(ZipEntry entry) { var match = _sheetPathPattern.Match(entry.fileName); if (!match.Success) { return(false); } var path = entry.fileName; var stream = new MemoryStream(entry.GetUncompressedBytes()); var reader = _CreateXmlReader(stream); _sheetStreams.Add(path, stream); _sheetReaders.Add(path, reader); return(true); }