How to DFCLib library in VB.Net
I want to convert object to Idfdocument in VB.NET
Id = m_DfClientX.getId(itemID) 'itemID string If (Id IsNot Nothing) Then sysObj = CType(session.getObject(Id), IDfSysObject) nesne = sysObj.getContent()
Dim doc As IDfDocument = CType(nesne, IDfDocument) ***exceptionnn
Exception is:'System._Object' türündeki COM nesnesi 'DFCLib.IDFDocument' arabirim türüne atanamadı. '{EFAC2D68-175B-9927-006097C27C31}' IID'sine sahip arabirim için COM bileşenindeki QueryInterface çağrısı aşağıdaki hatayla başarısız olduğundan bu işlem başarısız oldu. Böyle bir arabirim desteklenmiyor. (HRESULT özel durum döndürdü:0x80004002 (E_NOININTERFACE)).
Comments
-
if nesne is the result of getContent then it is, in Java terms, a ByteArrayInputStream hence it cannot ever be converted to an IDfDocument instance. This is all in the JavaDoc.
Is IDfDocument is a subclass/interface of IDfSysObject and as the getObject() call can return an IDfDocument try
Id = m_DfClientX.getId(itemID) 'itemID string
If (Id IsNot Nothing) Then sysObj = CType(session.getObject(Id), IDfDocument)
OR
Dim doc As IDfDocument = CType(sysObj, IDfDocument)
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management