The second link illustrates the use of Interop, which the OP says they cannot use. Please read the links you find in search results before posting irrelevant ones all over the forum.
The second link illustrates the use of Interop, which the OP says they cannot use
and the first link needs Excel installed and the OP said they do not have office installed (which is a good thing because it is not supported on a server)
The second link illustrates the use of Interop, which the OP says they cannot use
and the first link needs Excel installed and the OP said they do not have office installed (which is a good thing because it is not supported on a server)
acarmelo1
Member
30 Points
30 Posts
Creating an Excel File in C#
Sep 08, 2012 06:36 PM|LINK
Hi,
I need to create an excell file programaticaly.
How can I do this without using Interop, since I dont have office installed and that is requiered to use that dll.
Regards,
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: Creating an Excel File in C#
Sep 08, 2012 07:32 PM|LINK
You can use the OpenXML SDK to create .xlsx files programmatically.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
RameshRajend...
Star
7983 Points
2099 Posts
Re: Creating an Excel File in C#
Sep 08, 2012 07:35 PM|LINK
Look this
http://www.codeproject.com/Articles/20228/Using-C-to-Create-an-Excel-Document
http://www.c-sharpcorner.com/uploadfile/jayendra/how-to-create-excel-file-in-Asp-Net-C-Sharp/
Thank u
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: Creating an Excel File in C#
Sep 08, 2012 09:40 PM|LINK
The second link illustrates the use of Interop, which the OP says they cannot use. Please read the links you find in search results before posting irrelevant ones all over the forum.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
acarmelo1
Member
30 Points
30 Posts
Re: Creating an Excel File in C#
Sep 08, 2012 09:54 PM|LINK
Thanks guys!!
Paul Linton
Star
13403 Points
2531 Posts
Re: Creating an Excel File in C#
Sep 08, 2012 10:46 PM|LINK
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: Creating an Excel File in C#
Sep 09, 2012 08:13 AM|LINK
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
Kamiran
Member
224 Points
193 Posts
Re: Creating an Excel File in C#
Sep 10, 2012 08:11 AM|LINK
Is there any guide to work with this example..?
Paul Linton
Star
13403 Points
2531 Posts
Re: Creating an Excel File in C#
Sep 10, 2012 09:22 AM|LINK
Scroll down to the bottom of the download page. More help than you could dream of.
RichardD
Contributor
3950 Points
549 Posts
Re: Creating an Excel File in C#
Sep 11, 2012 08:07 PM|LINK
You might want to look at EPPlus, which is a higer-level wrapper than the raw SDK.