Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.
Fri Apr 20, 2018 2:23 pm
I am trying to delete column using workbook.DeleteColumn(index) but it doesn't delete the column and shows some error after generating the excel as need to format the excel. After using the SaveTofile() method also it is not working
Thanks for your post. After an initial test with Spire.XLS Pack(Hotfix) Version:8.4.6, I was unable to reproduce the issue. Please use the version and try again. If you still encounter the issue, please share us with your Excel file and full code for further investigation.
Thanks for quick response and tried with latest spire version but facing the same issues. Cannot share the file but there is a formatting existing for all the columns so do i have to clear the filter and clear the formatting before deleting the column?
Thank you very much for your details. I encountered a 'System.NullReferenceException' when saving the document after deleting the column that had filter. I have logged the issue into our bug tracking system. If any update, we will let you know.