C#: Online Guide
How To: Word SDK
Table Row Processing
Table Row Processing
  |  
Home ›› XDoc.Word ›› C# Word: Process Table Row

C# Word - Table Row Processing in C#.NET


How to Set and Modify Table Rows in Word Document with C#.NET Solutions




Overview



C#.NET Word document table row processing Interface control (XDoc.Word). c# read pdf text itextsharp, c# convert pdf to jpg, how to add image in pdf using itext in c#, pdf sdk vb.net, merge pdf files in asp net c#, c# qr code reader pdf. It can be used to process table rows in an existing or new Word file.


Related .net document control helps:
asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net excel web viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net image viewer zoom: ASP.NET Image Viewer Control(MVC & WebForms): view, annotate, redact, convert image files in html, JQuery
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net document viewer control: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#




C# DLLs: Word Table Row Processing



Add references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Word;




Create and Add Rows in Table



The following C# demo code will show how to create a new row in current table. vb.net modify pdf file, c# convert pdf to jpg, c# make thumbnail of pdf, convert word byte array to pdf c#, vb.net convert word to pdf, c# convert csv to pdf, c# remove images from pdf.




String docFilePath = @"";
//Open the document
DOCXDocument document = DOCXDocument.Open(docFilePath);
//Get the main document
IDocument doc = document.GetDocument();
//Create a table in body
ITable table = doc.CreateTable(3, 3);
//Create a table row for table
ITable row = table.CreateRow(3);
//Save the document
doc.Save(@"");





Set Properties of Table Row



In C# class programming, you can use specific APIs to process table row in Word document. You can set properties of all row in table, and modify them. preview pdf in asp.net, asp.net itextsharp add image to pdf, embed pdf in mvc view, asp net show word document in browser, asp.net display pdf, free asp.net tiff viewer, how to edit pdf file using itextsharp in asp.net. Please refer to following C# sample code.




String docFilePath = @"";
//Open the document
DOCXDocument document = DOCXDocument.Open(docFilePath);
//Get the main document
IDocument doc = document.GetDocument();
//Create a Table for document
ITable table = doc.CreateTable(3, 3);
//Get all rows in table
List<ITableRow> rows = table.GetRows();
//Get first row
ITableRow row = rows[0];
//Set properties for table row
//CantSplit
row.SetCanSplit(true);
//Row height
row.SetRowHeight(1000);
//Table row repeat on every new page
row.SetTblHeader(true);
//MORE TODO:
//
//
doc.Save(@"");





Create, Add and Delete Cells in Table



If you want to create or add new cells and delete existing cells in table row, you can use our APIs in class ITableRow. The following demo code describe how to create new cells in table row.




String docFilePath = @"";
//Open the document
DOCXDocument document = DOCXDocument.Open(docFilePath);
//Get the main document
IDocument doc = document.GetDocument();
//Create a Table for document
ITable table = doc.CreateTable(3, 3);
//Get all rows in table
List<ITableRow> rows = table.GetRows();
//Get first row
ITableRow row = rows[0];
//Create a new cell for row
ITableCell cell = row.CreateCell();
//MORE TODO:
//
//
doc.Save(@"");