Hi all,
can anyone please tell me how to write data into existing excel tempate
here i have explained my tempate
| s.no | Stdname | Rollno |
above format is my template need to write data into that template
| s.no | Stdname | Rollno |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 29, 2020, 7:33 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Aug 29, 2020, 9:53 PM EDT
Tina Tang127 reputationPosted Aug 30, 2020, 4:41 PM EDT
using System.Drawing; using Spire.Xls; namespace Create_Excel_File { class Program { static void Main(string[] args) { //Initialize a new Workboook object Workbook workbook = new Workbook(); //Get the first worksheet Worksheet sheet = workbook.Worksheets[0]; //Write string values in a cell sheet.Range["A3"].Text = "This Excel Document is Created by Spire.XLS for .NET"; //Save workbook to disk workbook.SaveToFile("Sample.xls",ExcelVersion.Version97to2003); try { System.Diagnostics.Process.Start(workbook.FileName); } catch { } } } }