![view document properties word 2016 view document properties word 2016](https://searchexplained.com/wp-content/uploads/2016/11/Word-2013-Document-Information-Panel.png)
To use this code, run it from the ThisDocument class in your project. 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.
![view document properties word 2016 view document properties word 2016](https://www.customguide.com/images/lessons/word-2019/word-2019--document-properties--02.png)
(, 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.