I recently updated my Spire.Office nuget package from 4.12.6 to 5.11.0 and I'm now receiving a System.MissingMethodException exception when I attempt to step into the method containing the following lines of code:
- Code: Select all
Image image = GetFacilityImage(facility);
ITextBoxLinkShape textbox = worksheet.TextBoxes[0];
textbox.Fill.CustomPicture(image, "Image");
This is the exception:
- Code: Select all
Method not found: 'Void Spire.Xls.Core.IShapeFill.CustomPicture(System.Drawing.Image, System.String)'.\r\n ---> System.MissingMethodException: Method not found: 'Void Spire.Xls.Core.IShapeFill.CustomPicture(System.Drawing.Image, System.String)
This code worked in the past however it now fails after the nuget package was updated. Everything works fine if I use the CustomPicture overload that takes a filename (eg, CustomPicture(@"c:\boo.jpg")) but it fails when I user the overload that takes an image. Note that exception occurs at runtime. The code compiles without error.
Any assistance would be greatly appreciated.
Thanks,
Todd