Solved

export an excel file from sharepoint

Posted on 2011-09-30
3
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

733 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