VB.NET中的FileNet文件上传

VB.NET中的FileNet文件上传,.net,vb.net,filenet-p8,filenet,.net,Vb.net,Filenet P8,Filenet,我试图上传一个文件到一个特定的FileNet文件夹,这段代码只创建一个空的pdf文档。有什么帮助吗 Dim folder As IFolder = Factory.Folder.GetInstance(os, ClassNames.FOLDER, New Id(IdS)) Dim doc As IDocument = Factory.Document.CreateInstance(os, ClassNames.DOCUMENT, Nothing) doc.Properties("Doc

我试图上传一个文件到一个特定的FileNet文件夹,这段代码只创建一个空的pdf文档。有什么帮助吗

Dim folder As IFolder = Factory.Folder.GetInstance(os, ClassNames.FOLDER, New Id(IdS))
Dim doc As IDocument = Factory.Document.CreateInstance(os, ClassNames.DOCUMENT, Nothing)
doc.Properties("DocumentTitle") = "Test110"
doc.MimeType = "application/pdf"
doc.Save(RefreshMode.NO_REFRESH)
Dim rcr As IReferentialContainmentRelationship = folder.File(doc, AutoUniqueName.AUTO_UNIQUE, "Test", DefineSecurityParentage.DO_NOT_DEFINE_SECURITY_PARENTAGE)
rcr.Save(RefreshMode.NO_REFRESH)