Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Fri Mar 04, 2011 2:03 am

I want to create a table into the word document, but my data is too much. I don't know how many columns and rows it may contain. What should I do for this issue??

Posts: 13
Joined: Wed Dec 22, 2010 1:12 am

Fri Mar 04, 2011 7:55 am

You may use the method table.ResetCells(data.Length + 1, header.Length). In this way, you don't need to know the columns and rows of the your data.
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Tue May 03, 2011 11:14 am

I am using spire.doc trial version. I create table and fill values in the table. Now I want to set the color of the text in the table cell. Please tell me the solution or path from where I get help.

Example :Below is the table that contains four columns each cell contain numerice values. Now I want to change the color of numeric value
If cell suppose 22 is less than 50 change the text color to green.

If (cell<50)
Make 22 green color in the word document.

21 22 23 60

Posts: 2
Joined: Tue May 03, 2011 7:19 am

Thu May 05, 2011 8:32 am

Dear ali.butt2008 ,
Thanks for your inqury.It's very simple!

The pseudo-code is like this:
If (cell.value<50)
cell.CellFormat.BackColor = Color.Green;
If you still have some questions,please ask us again!
Technical Support / Developer,
e-iceblue Support Team
User avatar

Justin Weng
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Return to Spire.Doc