Solved

export an excel file from sharepoint

Posted on 2011-09-30
3
330 Views
Last Modified: 2012-05-12
There is some code/werbparts on our site that display a lot of data in a grid on our site.  In addition, they have another page with a few charts.

I need a way to create functionality to export this to excel so the user can click a button and save everything.

The chart will actually have to be built in excel, I can't just grab the picture from the website and display it.

Also, the data from the grid will have to be put into a spreadhseet.  I am not as worried about this part.

I have exported to excel before, but it was just basically printing some data which was tab delimited with a certain doc type .

This actually will need to use different work sheets and use some excel functionality.

(I need a better answer than use excel services)
Thanks!
0
Comment
Question by:jackjohnson44
  • 2
3 Comments
 
LVL 18

Expert Comment

by:dj_alik
ID: 36896023
Export SharePoint List to Excel Spreadsheet Programmatically using C#
http://www.etechplanet.com/blog/export-sharepoint-list-to-excel-spreadsheet-programmatically-using-c.aspx
0
 

Author Comment

by:jackjohnson44
ID: 36905154
Thanks, but that is not what I am looking for.  That creates an xls file with only text.  I am looking to make a compled xlsx document.
0
 
LVL 18

Accepted Solution

by:
dj_alik earned 500 total points
ID: 36907860
You can use a library called ExcelLibrary. It's a free, open source library posted on Google Code:
http://code.google.com/p/excellibrary/
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now