用于将共享点列表项导出到word的源代码 [英] source code for exporting sharepoint list items to word

查看:135
本文介绍了用于将共享点列表项导出到word的源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我必须一键将列表的所有列表项导出到Word文档.例如,我创建了一个列表并添加了一些项目行,在列表页面的底部应该有一个按钮,单击此按钮后,所有行项目都应导出到Word doc.我必须以编程方式执行.
此要求是紧急情况,请帮助我并提供相同的代码.

谢谢
Harsh

Hi,
I have to export all list items of a list to word document on one click. For example, i have created a list and added some rows of item, on the bottom of the list page there should be a button, on clicking on this button all rows item should be exported to word doc. this I have to do programmatically.
this requirement is on urgent basis, please help me and provide the code for the same.

Thanks
Harsh

推荐答案

好的,这里是:

Sure, here it is :

private void button1_Click(object sender, EventArgs e)
{
    ExportToWord(this.spList);
}



您现在要做的就是实现ExportToWord函数.

欢呼



All you have to do now is implement the ExportToWord function.

Cheers


对不起,我错过了它的共享项目,我必须将其用于共享列表项目.

谢谢,
严厉
Sorry, I have missed to mention it''s sharepoint project, I have to implemnent it for sharepoint list items.

Thanks,
Harsh


这篇关于用于将共享点列表项导出到word的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆