将 .pdf 文件上传到 Sharepoint 文档库
在 Access 2007 应用程序中,我正在创建 .pdf 格式的静态报告。我想创建它,然后将静态报告(不是数据本身)导出到 Sharepoint 文档库。其目的是使其成为一个公共存储库,没有版本控制。每份报告都会有一个唯一的名称。
我是一名经验丰富的 vba 程序员,但使用 Sharepoint 服务对我来说还是个新鲜事。我该怎么做呢?假设我可以在生成文件后识别文件名和位置,并且我知道 Sharepoint 库 URL,并且拥有权限。我该去哪里?
Within an Access 2007 application, I'm creating a static report in .pdf format. I want to create it, then export the static report (not the data itself) to a Sharepoint Document Library. The intent is for it to be a public repository, no versioning. Each report will carry a unique name.
I'm a seasoned vba programmer, but using Sharepoint services is new to me. How do I go about doing this? Assume I can identify the file name and location after I've generated it, and I know the Sharepoint library URL, and have permissions. Where do I go from there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Microsoft 在 SharePoint 中施展了一些魔法,使这些库对客户端来说表现为 Windows 网络共享。因此,您的程序只需将文件保存到 UNC 路径即可。
因此,如果您以具有图书馆权限的用户身份登录,并且图书馆的 URL 为
http://SHAREPOINT/Department/Files/
(例如),您只需保存或复制PDF 文件至\\SHAREPOINT\Department\Files\
。Microsoft did some magic in SharePoint to make the libraries appear as Windows network shares to the clients. So, your program can just save the file to the UNC path.
So if you are logged on as a user with permissions to the library and the URL to the library is
http://SHAREPOINT/Department/Files/
(for example), you can just save or copy the PDF files to\\SHAREPOINT\Department\Files\
.