Message 1 of 1
Check from which template a document was created

Not applicable
07-12-2018
11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to check from which template a document file was created? I found a _IsTemplateUsed property of Document object but I can't find any informations about it. This property has 2 arguments: template guid and I don't know what it is and also a file name.
My workaround is to set a Category iProperty of template to a template name, next on OnNewDocument event there is a checking of this iProperty (Category) and my add-in writes it to a string attribute of newly created document to allow user to change Category iProperty without loosing information about original template. But this is only a workaround and I wonder if there is other more strict solution.