Hi All,
I have .docx files which I am manipulatig using wordprocessing document.
I have a table in the file. I want to hide some rows in that table using word processing .
Is there any way to do that ?
Please help me. It is very urgent.
Thanks,
Dipu
Loading
John GlennPosted Mar 8, 2012, 4:38 AM
do you want to hide a row or delete a table row?
If you want to delete a table row, you can do it easily with this C# / VB.NET Word component.
Here is a sample C# DOCX code how to do it:
ComponentInfo.SetLicense("FREE-LIMITED-KEY");
// Load a document from the file.
var document = DocumentModel.Load("DocumentWithTable.docx", LoadOptions.DocxDefault);
// Get a first table in the document.
var table = document.GetChildElements(true, ElementType.Table).Cast<Table>().FirstOrDefault();
// Remove the first row from the table.
table.Rows.RemoveAt(0);
Jiteendra SampathiraoPosted Jul 18, 2011, 1:54 AM
Using Micrpsoft.office.interop.word;