Hi,
Thanks for providing sample code segment and details.
Please try our latest fix/version:
I have tested your scenario/case a bit using the following sample code with a simple template XLS file (attached) using v17.5.4, it works fine and the embedded powerpoint slide object is retained:
e.g
Sample code:
<span style=“font-size:
10.0pt;font-family:“Courier New”;mso-no-proof:yes”>Aspose.Cells.Workbook workbook = new
Aspose.Cells.Workbook(“e:\test2\Bk_deleteblankrowscols1.xls”);<o:p></o:p>
Worksheet
worksheet = workbook.Worksheets[0];
DeleteOptions
options = new DeleteOptions();
options.UpdateReference = true;
foreach
(Worksheet sheet in
workbook.Worksheets)
{
sheet.Cells.DeleteBlankColumns(options);
sheet.Cells.DeleteBlankRows(options);
}
<span style=“font-size:10.0pt;line-height:115%;font-family:“Courier New”;
mso-fareast-font-family:“MS Mincho”;mso-fareast-theme-font:minor-fareast;
mso-ansi-language:EN-SG;mso-fareast-language:JA;mso-bidi-language:AR-SA;
mso-no-proof:yes”>
workbook.Save(“e:\test2\out1.xls”);
<span style=“font-size:10.0pt;line-height:115%;font-family:“Courier New”;
mso-fareast-font-family:“MS Mincho”;mso-fareast-theme-font:minor-fareast;
mso-ansi-language:EN-SG;mso-fareast-language:JA;mso-bidi-language:AR-SA;
mso-no-proof:yes”>
<span style=“font-size:10.0pt;line-height:115%;font-family:“Courier New”;
mso-fareast-font-family:“MS Mincho”;mso-fareast-theme-font:minor-fareast;
mso-ansi-language:EN-SG;mso-fareast-language:JA;mso-bidi-language:AR-SA;
mso-no-proof:yes”>
If you still find the issue with v17.5.4, please provide us your template file and output file(s) with your sample code (runnable) to reproduce the issue on our end, we will check it soon.
Thank you.