Skip to content

Commit

Permalink
Fix External File Excel Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ggallotti committed Oct 21, 2022
1 parent 009663a commit 54a3641
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 54a3641

Please sign in to comment.