Hi Aspose team,
I am using version 8.9.2.0 and having a problem in clear cell contents of xlsb file. I am using "ClearContents" and here is the code sample which is not working.
Workbook workbook = null;
Worksheet worksheet = null;
FileStream fstream = null;
string Message = "";
try
{
string filePath = Server.MapPath("~/ExcelFile/" + fileName);
if (File.Exists(filePath))
{
using (fstream = new FileStream(filePath, FileMode.Open))
{
workbook = new Workbook(fstream);
worksheet = workbook.Worksheets[Sheetname];
worksheet.Cells.ClearContents(20, 0, 20, 0);// cell A20
}
}
fstream.Close();
workbook.Save(Filename);
Please suggest.
Thanks and Reagrds,
Arpita