ShowSaveAsOptionsDlg in C#
Options
Hello,
I'm trying to write a version of ShowSaveAsOptionsDlg in C#. I can create a session and get to the NRTDatabase object without issue. The problem I have is obtaining an NRTDocument object for the file (currently residing as a word document on the main drive) that I want the user to save. Can anyone point me in the right direction please?
Many thanks
Martin
I'm trying to write a version of ShowSaveAsOptionsDlg in C#. I can create a session and get to the NRTDatabase object without issue. The problem I have is obtaining an NRTDocument object for the file (currently residing as a word document on the main drive) that I want the user to save. Can anyone point me in the right direction please?
Many thanks
Martin
0
Comments
-
Hi Martin
I guess you're looking for IManDocument object, if yes here is the code
IManSession session = null;
IManDatabases imanDatabases = null;
IManDatabase imanDatabase = null;
IManDocument doc = null;
dms = new ManDMSClass();
session = dms.Sessions.Add("Your WorkSite Server Name");
session.Login("WorkSite Server Login Id", "WorkSite Server Login Password");
imanDatabases = session.Databases;
imanDatabase = imanDatabases.ItemByName("Your Database Name");//You can also use ItemByIndex
doc = imanDatabase.GetDocument("Document Number", "Document Version");//now by using doc object you can perform many actions0 -
Hi, Many thanks for the reply. It's mighty quiet here in the Forums!
The problem I have is actually reading a file from the local disk, such as C:\MyDocument.doc, before checking it into the database.
Is it possible to load c:\MyDocument.doc into a IManDocument object before saving it (Checking it in) or should I be using some other object.
Many thanks
Martin0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 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
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.