Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed May 17, 2017 8:39 am

hey, is it possible in spire to add a column to to a single row?

So in the below image, see in the first table I only have one item in the last row so there should be only be one column

In the second table, there's two items so there's two columns in the last row.

Can this be duplicated in Spire? I've had a play around and it seems that it makes a column on ALL rows not the specific row I want

Thanks in advanced

Dylan_Spire
 
Posts: 18
Joined: Wed Jun 15, 2016 1:28 am

Wed May 17, 2017 8:57 am

Dear Dylan_Spire,

Thanks for your inquiry.
I think that spliting the specific cell can meet your requirement. Here is sample code for your kind reference.
Code: Select all
            table.Rows[1].Cells[0].SplitCell(2, 1);

If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc