从 sharepoint 导出到 Excel - 复杂
我们网站上的一些代码/werbparts 在我们网站的网格中显示大量数据。此外,他们还有另一个页面,其中有一些图表。
我需要一种方法来创建将其导出到 Excel 的功能,以便用户可以单击按钮并保存所有内容。
该图表实际上必须在 Excel 中构建,我不能只从网站上抓取图片并显示它。
此外,来自网格的数据必须放入电子表格中。我并不担心这部分。
我之前已经导出到Excel,但它基本上只是打印一些用某种文档类型制表符分隔的数据。
这实际上需要使用不同的工作表并使用一些 Excel 功能。
(我需要比使用 Excel 服务更好的答案) 谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用Epplus是一个用于创建和操作excel文件(xlsx)的第三方库
Use Epplus is a third party library for creating and manipulating excel files(xlsx)
不知道共享点,但 OpenXML SDK 可能就是您想要的:-
http://msdn.microsoft.com/en-us/library/bb448854.aspx
Dunno about sharepoint, but the OpenXML SDK might be what you're after:-
http://msdn.microsoft.com/en-us/library/bb448854.aspx