以上只是對文件的基本信息進行了設置也就相當在創建文件的模板中只
是填寫了基本信息沒有上傳文檔時生成的不含主文檔的文件。以下是創
建主文件:
ContentHolder contentHolder
=ContentHelper.service.getContents(newDoc);
//獲得文件的ContentHolder
ApplicationData appdata =
ApplicationData.newApplicationData(contentHolder);
appdata.setRole(ContentRoleType.PRIMARY);//设置为主文件(second附件)
通過ApplicationData 去設置主文檔的名稱、大小、以及文件上傳路徑等.
ContentServerHelper.service.updateContent
(contentHolder,appdata,fileStream);//主文件創建成功
參數fileStream是要上傳的文件輸入流。
分享到:
相关推荐
HTML Document HTML DocumentHTML DocumentHTML Document
Office 2007并不会像Office 2003那样自动安装虚拟打印机Microsoft Office Document Image Writer,而是自动安装了另一款虚拟打印机Microsoft XPS Document Writer,难道Office 2007不支持Microsoft Office Document ...
Document Manager 7.0 包括了改善可用性、管理和有用性的功能增强。 可用性增强 • 扩展的 Notes 电子邮件集成 -- 桌面激活器用户可以直接把 Lotus Notes e-mail 内容、文件附件和标题信息移动到 Document Manager...
dom4j的Document对象格式化后输出String
django国际化documentdjango国际化document
document.bgColor //设置页面背景色 document.fgColor //设置前景色(文本颜色) document.linkColor //未点击过的链接颜色 document.alinkColor //激活链接(焦点在此链接上)的颜色 document.vlinkColor //已点击过的...
定义一个Document类,包含成员变量name,从Document派生出Book类,增加PageCount变量。编写主函数测试这两个类
1、理解document.all[] 从IE4开始IE的object model才增加了document.all[],来看看document.all[]的Description: Array of all HTML tags in the document.Collection of all elements contained by the object. ...
document.execCommand()的用法
Microsoft XPS Document Writer 即:XPS虚拟打印机 软件开发打印测试的必备工具。 突然发现不能用了,缺少驱动什么的,删除了,没法再安装了。网上找了半天,得解,有人竟然要8分,做人要厚道,我只要1分。 适用...
实际上,document 和 window 这两个对象的区别已经包含了这个问题的答案。 document 表示的是一个文档对象,window 表示一个窗口对象。 一个窗口下面可以有很多的document对象。每个document 都有 一个URL。 但是,...
一款用DocumentViewer控件制作的WPF应用程序(文本阅读器)
New Document.md
Document对象详解
将xmlDocument转化成dataset的一点点关键代码
document对象document对象document对象
凭证导入 BAPI_ACC_DOCUMENT_POST
document file to read,nice document to know
java Document 快速排序法 java Document 快速排序法 java Document 快速排序法