-
Notifications
You must be signed in to change notification settings - Fork 294
Open
Labels
bugSomething isn't workingSomething isn't working
Description
EPPlus usage
Commercial use (I have a commercial license)
Environment
Windows
Epplus version
8.1.0
Spreadsheet application
Excel
Description
After upgrading the version to 8.1.0. The following section throws Null reference exception:
var drawing = worksheet.HeaderFooter.FirstHeader.InsertPicture(fs, ePictureType.Png, PictureAlignment.Left);
drawing.Height = 40;
worksheet.HeaderFooter.FirstHeader.CenteredText = pageTitle;
worksheet.HeaderFooter.FirstFooter.LeftAlignedText = $"{ExcelHeaderFooter.CurrentDate} {ExcelHeaderFooter.CurrentTime}";
worksheet.HeaderFooter.FirstFooter.RightAlignedText = $"Printing: {user.DisplayName} - {ExcelHeaderFooter.PageNumber}/{ExcelHeaderFooter.NumberOfPages}";
Tried access only the FirstHeader, but this also throws an exception:
var fh = worksheet.HeaderFooter.FirstHeader;

It works perfectly in 8.0.8 so currently we rolled back the version.
I think its related to this bug:
#2078
Please, can you check this?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Backlog