Click here to Skip to main content
15,909,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Is there any way ,we can create Excel file programetically without installing MS EXCEL.
I need to develop in C# only.My application copies HTML contenet to an Excel file.

Kindly any one please guide me.

Thanks :)
Posted
Updated 19-Apr-11 0:51am
v4

Google it first before posting!

Or click the link below.
http://www.aneef.net/2008/07/25/create-excel-sheets-programmatically-with-c-without-installing-excel/[^]

Good luck!
 
Share this answer
 
Comments
pjhelp 18-Apr-11 2:43am    
Hi Mr.Pand,
Thanks for your reply.
Before you i'hd tried with this link. But i faced problem how to impliment in my application.I'hd gone through it's site,but i didn't find any proper step for implimentain.
Can please gide how to use that 'ExcelWriter' in my existing C# project. I mean to say hoe to get that Library & steps to add this Library in .Net Environment. Please guide me if you have implimented it in past.

Thank U :)
 
Share this answer
 
 
Share this answer
 
Here[^] is a really good article that will help you.
 
Share this answer
 
If you are using Excel 2007, you can use this article: Read and write Open XML files (MS Office 2007)[^]

There is also the Open XML SDK[^] from Microsoft - this article[^] explains how to use the SDK for Microsoft Word document, Excel documents are similar.
 
Share this answer
 
v2
Hi, you can also try GemBox.Spreadsheet componet, it doesn’t require MS Excel to be installed on machine and I think you will find it easy to use:
Here is an example how to [spam link removed] (XLS format) with one worksheet and inserted text “Sample text” into “A1″ cell:
C#
var workbook = new ExcelFile();

// Add new worksheet to Excel file.
var worksheet = workbook.Worksheets.Add("Sheet");

// Set the value of the cell "A1".
worksheet.Cells["A1"].Value = "Sample text";

// Save Excel file.
workbook.Save("Workbook.xls");

Also, for your application that copies HTML content to an Excel file, I think you will find the following article interesting – [spam link removed].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900