![]() The following example shows the complete procedure. Tbl.Cell(3, 2).Range.Text = ((Office.DocumentProperties)(this.BuiltInDocumentProperties)) Tbl.Cell(2, 2).Range.Text = ((Office.DocumentProperties)(this.BuiltInDocumentProperties)) Tbl.Cell(1, 1).Range.Text = "Document Property" ![]() Cell(3, 2).Range.Text = CType(Me.BuiltInDocumentProperties, Office.DocumentProperties) _ Cell(2, 2).Range.Text = CType(Me.BuiltInDocumentProperties, Office.DocumentProperties) _ Cell(1, 1).Range.Text = "Document Property" Insert the document properties into cells. (, 3, 2, ref missing, ref missing) įormat the table and apply a style. (Range:=Me.Paragraphs.Item(2).Range, NumRows:=3, NumColumns:=2) With rngĪdd the table to the document at the range. Insert a title for the table and include paragraph marks. Word.Range rng = this.Range(ref start, ref end) Dim rng As Word.Range = Me.Range(Start:=0, End:=0) ![]() Set the range to the top of the document. Populate tables in a document-level customization To create a table and populate it with document properties ![]() For more information, see Features available by Office application and project type. The following example creates a Microsoft Office Word table at the top of the document and populates it with the properties of the host document.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |