After saving the document with aspose, the problem occurs as you would like to print.
PrintError.zip (188.5 KB)
Thanks for the template files and screenshots.
How did you create/save the file “asposeSave.xlsx”, we need your simple console demo application (runnable) to reproduce the issue on our end (you may zip the project prior attaching here).
PS. Please try using our latest version/fix: Aspose.Cells for .NET v18.9.x if you are not already using it.
We just use this code block.
Aspose.Cells.Workbook wb = new Aspose.Cells.Workbook(uploadedFile.FileContent);
Aspose cell version:18.7.2
Thanks for the sample code segment and details.
I have evaluated your issue a bit. I found that your header picture/shape’s placement type is changed a bit when re-saving the file. To cope with it, please try using the following line of code before saving the workbook, it will work fine as I tested:
......... wb.Worksheets.Pictures.Placement = PlacementType.FreeFloating; //or you may use: PlacementType.MoveAndSize
Hope, this helps a bit.
This solution is not suitable for our application. Do you have any other suggestions?
We are sorry that suggested workaround does not fit your needs well. I have logged a ticket with an id “CELLSNET-46385” for your issue. We will look into it to figure it out soon. The issue is logged as following:
CELLSNET-46385 - Header picture/shape is not rendered correctly when re-saving an XLSX file
Once we have an update on it, we will let you know here.
This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-46385”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.
Please try our latest version/fix: Aspose.Cells for .NET v18.9.5
Your issue should be fixed in it.
Let us know your feedback.