.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sharon Maxwell

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Writing values to excel file

Posted By: Deco     Posted Date: October 27, 2010    Points:2   Category :C#
How to write the value in a particular excel cell using c#

Author: Santosh             
Posted Date: October 27, 2010     Points: 5   


Just Follow below link,
this code is in vb.net ,just convert it into c#,if not able to convert then let me know.....


hope this will help u.........


Author: Don             
Posted Date: January 11, 2011     Points: 5   

Try this:

C# Syntax (Toggle Plain Text)
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = TrueobjExcel.Workbooks.AddobjExcel.Cells(1, 1).Value = "Test value"
Set objExcel = CreateObject("Excel.Application")

objExcel.Visible = True
objExcel.Cells(1, 1).Value = "Test value"

Just alter the objExcel.Cells(1.1) with the cell you want. Test value can be anything you like.

Author: arronlee             
Posted Date: February 03, 2016     Points: 20   

Have you worked it out?

Next Tomorrow is Another Day .

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend