Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Tabular with EPPlus and CsvHelper #672

Merged
merged 3 commits into from
Jun 5, 2018

Conversation

MisinformedDNA
Copy link
Contributor

Contributes to #300

{
public static IEnumerable<IEnumerable<string>> GetAllRecords(Stream stream, int sheetNumber = 0)
{
using (var excel = new ExcelPackage(stream))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked through the EPPlus source and it doesn't look like ExcelPackage closes external streams. That means we need to make sure the input document stream gets disposed from the call site (IDocument.GetStream() requires the stream be closed as soon as possible since it locks some resources). I'll fix it up, just FYI.

@daveaglick daveaglick merged commit 30b8e14 into statiqdev:develop Jun 5, 2018
@daveaglick
Copy link
Member

Thanks. This pull request has been integrated manually.

@daveaglick
Copy link
Member

Excellent work, thanks!

@MisinformedDNA MisinformedDNA deleted the replace-tabular branch June 5, 2018 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants