Hi,
Hi,
e.g
Sample code:
string inOutPath = String.Concat(Environment.CurrentDirectory, @"\InputOutput");
string fileName = “DPH13xx_FINAL.xlsx”;
string outFileName = String.Concat(“Modified_”, fileName);
string fullFileName = Path.Combine(inOutPath, fileName);
string fullOutFileName = Path.Combine(inOutPath, outFileName);
string newValue = “3”;
Workbook workBook = new Workbook(fullFileName);
Worksheet dicWorksheet = workBook.Worksheets[“DPH1”];
Cell dicCell = dicWorksheet.Cells[“J21”];
dicCell.PutValue(newValue);
Style dicCellStyle = dicCell.GetStyle();
dicCellStyle.IsLocked = true;
dicCell.SetStyle(dicCellStyle);
Stream fileStream = File.Create(fullOutFileName);
workBook.Save(fileStream, SaveFormat.Xlsx);
Console.WriteLine(String.Concat("Saved ", fullOutFileName));
Console.WriteLine();
Console.WriteLine(“Press any key to exit.”);
Console.ReadKey();
Thanks. Looking forward to see your answer soon. ;-))
Hi,
Thanks for your using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells for .NET v8.1.2.1 and let us know your feedback.
It works!
Hi,
The issues you have found earlier (filed as CELLSNET-42849) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi,
Hi,
Thanks for your feedback and using Aspose.Cells.
We were able to observe this issue by simply opening and saving your source Excel file. The output Excel file is corrupt.
We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as
- CELLSNET-43342 - Source XLSX file gets corrupt on opening and saving
I have attached the source and output Excel files for a reference.
C#
string filePath = @“F:\AsposeCellsTester\InputOutput\SILDAN14_xml_big.xlsx”;
Workbook workbook = new Workbook(filePath);
workbook.Save(filePath + “.out.xlsx”);
Hi,
Thanks for your using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells for .NET v8.3.2.2 and let us know your feedback.
Hi,
Hi Robert,