在共享点的文档库中打开一个文件 [英] Open a File in document library of sharepoint

查看:86
本文介绍了在共享点的文档库中打开一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai

我的应用程序列出了共享点站点的文档libaray中的所有文件.我需要在编辑模式下打开文件(excel,docs ..)并进行更改.我希望这些更改在sharepoint服务器中更新.可能吗 .请帮助...

hai

my application lists out all the files in the document libaray of a sharepoint site . i need to open the files (excel,docs..) in edit mode and make changes.i want these changes to update in the sharepoint server. is it possible . please help ...

推荐答案

SPListItem.File.OpenBinary()方法可用于此目的.此方法返回字节数组中的值.但是,如果您要打开文件进行编辑,则可能必须使用第三方库.我们通常将OpenXML用于doc文件.
SPListItem.File.OpenBinary() method can be used for this purpose. This method returns the value in byte array. But if you want to open the file for editing purpose then you may have to use third party libraries. We generally use OpenXML for doc files.


这篇关于在共享点的文档库中打开一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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