We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PrintObject property is set to true after loading and saving file


After loading the file SrcBook_NoPrint.xlsm, saving it to TgtBook_NoPrint.xlsm the PrintObject property of all buttons is set to true. Therefore you see them in TgtBook_NoPrint.pdf.

But only with this workbook.
After resaving the workbook with excel and doing actions above, no property setting is done.

Used version:

private static void TestPrintButtonPdf()
string srcFilePath = @“C:\temp\SrcBook_NoPrint.xlsm”;
string tgtFilePath = @“C:\temp\TgtBook_NoPrint.xlsm”;
string tgtFilePdfPath = @“C:\temp\TgtBook_NoPrint.pdf”;
<span style="color:#2b91af;">Workbook</span> wbSource = <span style="color:blue;">new</span> <span style="color:#2b91af;">Workbook</span>(srcFilePath);

wbSource.Save(tgtFilePdfPath, <span style="color:#2b91af;">SaveFormat</span>.Pdf);



Thanks for the template files, screenshot and details.

After an initial test, I am able to observe the issue as you mentioned by using your sample code with your template XLSM file. I found that PrintObject property of all the command buttons is set to true (as per your attached screenshot) after loading and saving the XLSM file via Aspose.Cells APIs. In the original file the property is set to false so it should not be changed. I have logged a ticket with an id “CELLSNET-45368” for your issue. We will look into it soon.

Once we have an update on it, we will let you know here.

Thank you.

Thanks for using Aspose.Cells.

This is to inform you that we have fixed your issue CELLSNET-45368 now. We will soon provide the fix after performing QA and including other enhancements and fixes.

Thank you


Thanks for using Aspose.Cells.

Please download and try the following latest fix

Aspose.Cells for .NET v17.5.2 (.NET 2.0) compiled in .NET Framework 2.0.
Aspose.Cells for .NET v17.5.2 (.NET 4.0) compiled in .NET Framework 4.0.

and let us know your feedback.


problem is solved now. Thanks.


Good to know that your issue is resolved by the new fix/version. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.

The issues you have found earlier (filed as CELLSNET-45368) have been fixed in Aspose.Cells for .NET 17.6.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.