Ms word document info4/20/2023 ![]() ![]() This prevents Word from loading any templates. When run programmatically, Word does not have a user profile loaded. Format:įor example, if you specify the following "FullName" = " %fullname%", the script will find text FullName in the template and replace it with the full name of the user on which it is executed. $propertyMap - Specifies a map of text placeholders and the corresponding value references for the properties to substitute placeholders with. ![]() For example, if you specify C:\reports\ %fullname%.docx, and the script is executed on user John Doe, the path will be C:\reports\ John Doe.docx. When the script will be executed, the value references will be replaced with property values of the user on which it is executed. You can use value references in both the template and the document paths.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |