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

Free Support Forum - aspose.com

Smart markers not removed when data source is empty

Hello,

While working with smart markers. I found that if my data source returned no data (no rows returned) then the smart markers were not removed from the Excel file.

We are currently phasing out a competing tool that removed the markers if no data was returned.

Please advise if this is bug or if we need to do something more than setDataSource() and Process.

Our Aspose.cells version is 7.04.

Thanks

Hi,

Please call Process method with false parameter for your needs, it will remove all the unneeded remaining smart markers tags in the output xls/xlsx file.

i.e


//Process the smart markers

designer.Process(false);

Thanks,

Your advice worked very well.