We are using Aspose.Cells.Cloud.SDK to convert excel files to PDF. There is a ‘Help’ sheet in all these excel documents that just contains instructions, which I don’t want to see in the final PDF document. Is there a way I can remove this sheet from converting to PDF?
Any help is greatly appreciated. Thank you in advance.
Hi @wangtao
I was able to implement this successfully but the requirements to delete worksheets increased with time. Is there a way where I can delete multiple worksheets in a single call ? I am looking to simplify the below statements. Also, all this code is in a for loop which is sometimes causing the ‘CellsWorksheetsDeleteWorksheet’ to fail. Please let me know if there is an efficient way of doing it.
We had released Aspose.Cells Cloud SDK 21.10 for DotNet. It supports deleting multiple worksheets in a single call.
Please refer to the following online development document about the feature.
Code:
CellsApi instance = new CellsApi(clientId, clientSecret);
MatchConditionRequest matchConditionRequest = new MatchConditionRequest();
matchConditionRequest.FullMatchConditions = new List() { “Sheet1”, “Sheet2”, “Sheet3” }; ;
var name = “Book1.xlsx”;
string folder = “DotNetTest”;
UpdateDataFile(instance, folder, “Book1.xlsx”);
var response = instance.CellsWorksheetsDeleteWorksheets(name, matchConditionRequest, folder);