如何使用JSOM为特定版本下载文档文件? [英] How to download a document file using JSOM for a specific version?

查看:74
本文介绍了如何使用JSOM为特定版本下载文档文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Team,


我们要求根据文本字段的一些选择下载文档文件。


我们如何才能使用JSOM下载具有特定版本号的文件。


代码片段将非常有用。


谢谢。




VINAYAK BHANGALE

解决方案


根据我的知识,没有方法可以使用JSOM实现这一点。我们需要使用CSOM。


要使用CSOM下载旧版本文件,您可以参考以下主题:


https://sharepoint.stackexchange.com/questions/203643/how-to-download-the-historical-minor-version-of-a-file-in-the -sharepoint-folder


使用CSOM代码开发自定义Web部件,然后您可以在网站页面上使用它。


如何创建SharePoint Web部件:


https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-create-a-sharepoint-web-part?view=vs-2017


Best  respect,


Linda  Zhang


Hello Team,

We have requirement to download document file based on some selection made on text fields.

How we can download a file with specific version number using JSOM.

Code snippets will be useful.

Thanks.


VINAYAK BHANGALE

解决方案

Hi,

Per my knowledge, there is no method to achieve that using JSOM. We need to use CSOM.

For downloading older version file using CSOM you can refer to the thread below:

https://sharepoint.stackexchange.com/questions/203643/how-to-download-the-historical-minor-version-of-a-file-in-the-sharepoint-folder

Develop a custom web part with CSOM code, then you can use it on the site page.

How to create a SharePoint web part:

https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-create-a-sharepoint-web-part?view=vs-2017

Best regards,

Linda Zhang


这篇关于如何使用JSOM为特定版本下载文档文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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