Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions dotnet/src/dotnetframework/GxExcel/GxExcelEPPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ public short Open(String fileName)
fileName += Constants.EXCEL2007Extension;
}
if (file.IsExternalFile)
{
{
Stream stream = file.GetStream();

if (stream != null)
{
p = new ExcelPackage(file.GetStream());
p = new ExcelPackage(stream);
}
else
{
errCod = 4;
errDescription = "Invalid file.";
return errCod;
p = new ExcelPackage();
}
}
else
Expand Down