I am using version 7.5.0.0 of Aspose.Cells. I am trying to convert a spreadsheet to PDF using Workbook.Save(). This spreadsheet contains a number of textboxes that I don’t want to be in the PDF file.
In an attempt to remove these textboxes, I tried clearing the TextBoxes collection property of the Worksheet class but after clearing the textboxes collection when I save the workbook as PDF, I can see all the textboxes there.
I think you may try to use TextBoxCollection.RemoveAt(index) method to remove your unwanted text boxes in the worksheet, see the sample code snippet below:
Thanks Amjad. RemoveAt seems to be working. I thought Clear() removes all the textboxes. If this is not what Clear() does, then when will someone use Clear()?