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 AnsariRank #326 · 7.6K reputationPosted Apr 9, 2022, 12:58 AM EDT
Vishwakarma VijayRank #7,257 · 245 reputationPosted Apr 9, 2022, 5:32 AM EDT
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
Ismael Oliveira163 reputationPosted Apr 9, 2022, 10:28 AM EDT
Ismael Oliveira163 reputationPosted Apr 9, 2022, 10:30 AM EDT