Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
About Document Type and Class
piyush123po
Hi All,
Is there any way to get the class of a document automatically which i am trying to import into worksite, like we can get document type automatically by using
session.PreferredDatabase.GetDocumentTypeFromPath(DocPath)
docpath is the path of document in my local PC which i need to import.
Plz reply asap.
Thanks
Piyush Gupta
Find more posts tagged with
Comments
jny
The document type is the document application type; thus the GetDocumentTypeFromPath Method gets the application type by detecting the file extension type.
The document class, however, can be assigned to any type of documents. For instance, a MIME type file can have an E-Mail class, but also can have a DOC class, MEMO class, or any other predefined class. So, it would be difficult to have a method to return a specific class for a given file. At least, not based on its file extension or any other file attributes.
You may use the SearchDocumentClasses Method to find a specific or all classes available off of a database. But, it's up to you to pick a class to profile with the document.