![]() ![]() Private void AddCustomXmlPartToDocument()Īdd the AddCustomXmlPartToDocument method to the ThisDocument class in a document-level project for Word.Ĭall the method from other code in your project. Private Sub AddCustomXmlPartToDocument()ĭim employeeXMLPart As Office.CustomXMLPart = _ The CustomXMLPart contains the XML string that you want to store in the document. ![]() To add a custom XML part to a Word documentĪdd a new CustomXMLPart object to the CustomXMLParts collection in the document. For example, to create the custom XML part when the user opens the workbook, call the method from the ThisWorkbook_Startup event handler. Office.CustomXMLPart employeeXMLPart = (xmlString, missing) ĭim employeeXMLPart As Office.CustomXMLPart = Me.CustomXMLParts.Add(xmlString)Īdd the AddCustomXmlPartToWorkbook method to the ThisWorkbook class in a document-level project for Excel.Ĭall the method from other code in your project. private void AddCustomXmlPartToWorkbook() The CustomXMLPart contains the XML string that you want to store in the workbook. To add a custom XML part to an Excel workbookĪdd a new CustomXMLPart object to the CustomXMLParts collection in the workbook. ![]() For information about adding a custom XML part to a PowerPoint presentation by using a VSTO Add-in, see How to: Add custom XML parts to documents by using VSTO Add-ins. Visual Studio does not provide document-level projects for Microsoft Office PowerPoint. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |