Hi. I use Visual Studio 2022 and C# with forms. In my project I have to open an Excel spreadsheet and fill data. I'm using Microsoft.Office.Interop.Excel. What I need now is to add (or remove) a row in the spreadsheet programatically. Also need to change a row text font (size or color). Can anyone help me with this?
Thank you.
Loading
Muhammad Imran AnsariPosted Apr 9, 2022, 4:58 AM
Ismael OliveiraPosted Apr 9, 2022, 2:30 PM
Ismael OliveiraPosted Apr 9, 2022, 2:28 PM
Vishwakarma VijayPosted Apr 9, 2022, 9:32 AM
Spire.XLS for .NET is a good alternative to Microsoft.Office.Interop.Excel. It offers a community edition for developers to create and manipulate Excel files for free.
Check the following link to find a set of comprehensive programming guide, which covers how to write data to an exsiting worksheet, how to add or remove a row and how to format text within a cell.
https://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Spire.XLS-Program-Guide-Content.html