简体   繁体   English

从sharepoint导出到excel-复杂

[英]export to excel from sharepoint - complex

There is some code/werbparts on our site that display a lot of data in a grid on our site. 我们网站上的一些代码/ werbparts在我们网站的网格中显示了大量数据。 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. 我需要一种方法来创建将其导出到excel的功能,以便用户可以单击按钮并保存所有内容。

The chart will actually have to be built in excel, I can't just grab the picture from the website and display it. 该图表实际上必须在excel中构建,我不能只是从网站上获取图片并显示它。

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 . 我以前已经导出到excel,但是它基本上只是打印一些用某种doc类型制表符分隔的数据。

This actually will need to use different work sheets and use some excel functionality. 实际上,这将需要使用不同的工作表并使用一些excel功能。

(I need a better answer than use excel services) Thanks! (我需要比使用excel服务更好的答案)谢谢!

Use Epplu s是用于创建和处理excel文件的第三方库(xlsx)

不知道有关共享点的信息,但是OpenXML SDK可能就是您想要的: -http : //msdn.microsoft.com/zh-cn/library/bb448854.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM