Aspose for VSTO Wiki
This project provides VSTO and comparative Aspose source code examples
Brought to you by:
asposemp
string mypath = "Document.docx"; Word.Application wordApp = Application; wordApp.Documents.Open(mypath); foreach (Table table in this.Application.ActiveDocument.Tables) { table.PreferredWidthType = WdPreferredWidthType.wdPreferredWidthPercent; table.PreferredWidth = 100; }
Document doc = new Document( "doc.docx"); foreach (Table table in doc.GetChildNodes(NodeType.Table, true)) { table.PreferredWidth = PreferredWidth.FromPercent(100); }