将NON-OFFICE文档上载,签入,签出到SharePoint [英] Upload, CheckIn, CheckOut of NON-OFFICE documents to SharePoint

查看:100
本文介绍了将NON-OFFICE文档上载,签入,签出到SharePoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一位具有20多年经验的VB/VBA程序员.因此,这*应该*简单.我发现的所有问题/答案仅与Office文档有关.我已自动创建和上传文件夹(使用驱动器映射和FileSystemObject). 正常工作,除了文件都标记为已签出".然后,我创建了一个函数,该函数将创建SharePoint.Docements.3对象的实例以调用CheckInDocument函数,但这失败了,因为Document没有Title属性 分配...,顺便说一句,它给出了错误的错误消息此文档已签出到您的本地草稿文件夹,但找不到本地副本...".我说这是不正确的错误消息的原因是因为如果我添加 使用SP中的文档属性"编辑器将其添加到标题"字段中,然后我的代码即可签入文档而没有错误.

I am a VB/VBA programmer with 20+ years experience. So this *should* be easy. All the question/responses I have found have related to Office documents only. I have automated the folder creation and upload (using drive mapping and FileSystemObject).  This works fine, EXCEPT the files are all marked as Checked-Out.  I then created a function that will create an instance of SharePoint.Docements.3 object to call CheckInDocument function, but this fails because the Document does not have the Title property assigned ... which, btw, gives the incorrect error message of "This document was checked out to your local drafts folder but the local copy could not be found...."  The reason I say this is an incorrect error message is because if I add something to the Title field using the Document Properties editor within SP, my code can then check in the document without error.

我的问题是这个...

My question is this...

在某种程度上,我找不到在上载时间或之后立即设置Title属性的方法吗?

Is there some way that I am not finding to set the Title property at or immediately after upload time?

所有示例的最大问题是,它们不断引用Office文档特有的方法. (例如CanCheckOut等)...但是我们正在上传各种文档,其中许多不是Office文档(例如PDF文件,图片等),因此 我正在寻找通用"商品.完成上传,设置标题和签入的方法...或者理想情况下,一种在上传过程中关闭自动签出的方法

My biggest problem with all the examples, is that they continually refer to methods specific to Office documents. (like CanCheckOut, etc) ... but we are uploading a variety of documents, many of which are not Office (e.g. PDF files, Images, etc) So I am looking for a "generic" method to accomplish the upload, set title, and check In ... or ideally, a way turn off the automatic check-out during upload

谢谢

门登霍尔艺术馆

VB6/VBA专家

推荐答案

Hello Art Mendenhall,

Hello Art Mendenhall,

此论坛是有关与Office对象模型有关的开发问题的.根据您的描述,您的问题与SharePoint开发有关,所以我将此线程移至 SharePoint 2013-开发和编程论坛.

This forum is for development issues related to Office Object Model. According to your description, your issue is related to SharePoint Development, so I would move this thread into SharePoint 2013 - Development and Programming forum.

此致

Celeste


这篇关于将NON-OFFICE文档上载,签入,签出到SharePoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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