PrintObject property is set to true after loading and saving file

Hi,

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: 17.5.0.0

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(tgtFilePath);
wbSource.Save(tgtFilePdfPath, <span style="color:#2b91af;">SaveFormat</span>.Pdf);

}




Hi,


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.
Hi,

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

Hi,

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.

Hi,

problem is solved now. Thanks.

Hi,


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.