Advertisement

05.23.2008 at 09:58AM PDT, ID: 23428236
[x]
Attachment Details

Export Datatable to Excel

Asked by pnadakuditi in Programming for ASP.NET, C# Programming Language, Microsoft Excel Spreadsheet Software

Tags: ASP.NET 2.0, C#

Hi,

I need some help in exporting my datatable to an excel file. I only need some specific columns in my datatable to be exported to the excel. I have successfully completed the task until here following the below link
http://www.codeproject.com/KB/aspnet/ExportClassLibrary.aspx?msg=2567252#xx2567252xx

This works just file. However the excel file is opening with out any formatting so I also need to apply styles to the exported excel file (like bold headers with coloured backgound, text alignment of the columns). I would be really grateful if someone can help me with this.

Many ThanksStart Free Trial
[+][-]05.23.2008 at 11:01AM PDT, ID: 21634291

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, C# Programming Language, Microsoft Excel Spreadsheet Software
Tags: ASP.NET 2.0, C#
Sign Up Now!
Solution Provided By: junges
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.23.2008 at 11:30AM PDT, ID: 21634532

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 11:49AM PDT, ID: 21634725

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 11:55AM PDT, ID: 21634776

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628