Check from which template a document was created

Check from which template a document was created

Anonymous
Not applicable
277 Views
0 Replies
Message 1 of 1

Check from which template a document was created

Anonymous
Not applicable

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.

0 Likes
278 Views
0 Replies
Replies (0)