The part and the reflected C# code that you can use to generate theįigure 1. The tool displays in the right-hand panes both the XML for Figure 1 shows a test document after you run the code in theĬalling the SetCustomProperty Method section of This toolĮnables you to open a document and view its parts and the hierarchy of Office, shown in Figure 1, to discover how they are stored. You can use the Productivity Tool for Microsoft It is important to understand how custom properties are stored in a word One of these values when you call the method. The SetCustomProperty method requires that you supply The sample code also includes an enumeration that defines the possible You must explicitly reference the following assemblies in your project:ĭocumentFormat.OpenXml (installed by the Open XML SDK)ĭirectives or Imports statements to compile To use the sample code in this topic, you must install the Open XML SDK 2.5. It contains an example SetCustomProperty method to illustrate this task. This topic shows how to use the classes in the Open XML SDK 2.5 for Office to programmatically set a custom property in a word processing document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |