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


Top 5 Contributors of the Month
david stephan

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#

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

Hi

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

http://www.dotnetspark.com/kb/1008-create-excel-run-time-vb-net.aspx


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


Regards
Santosh

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.Workbooks.Add
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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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