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.

Thu Sep 19, 2019 7:45 am

Hello!

I have added a table in a word document.
And I am trying to divide cells from a table.
I have two problems:
1.- When I divide the cell of a table line, the width of the table is not maintained. What happens when we manually divide a table into word and what seems to happen in the example I observed in the tutorial.
2.- When I divide two cells from different rows into a different number of columns, each row measures differently.

SplitColums.PNG


Is there any way to keep the width of the rows equal and equal to the initial size of the table?

Thank you very much for your help!

I enclose the sample code:
It is very simple.


Document spireDoc = new Document();
Section section = spireDoc.AddSection();

//add a table
Table table = section.AddTable(true);
table.ResetCells(2, 3);

//set column width
table.Rows[0].Cells[0].Width = table.Rows[0].Cells[2].Width = 50F;
table.Rows[1].Cells[0].Width = table.Rows[1].Cells[2].Width = 50F;


string resultName = String.Format(@"D:\temp\AMPO\InformesGenerados\RESULT-{0}.docx", new Random().Next(1, 100).ToString());
if (File.Exists(resultName)) File.Delete(resultName);
spireDoc.IsUpdateFields = true;
spireDoc.SaveToFile(resultName, Spire.Doc.FileFormat.Docx);

Document spireDoc2 = new Document();
Section section2 = spireDoc2.AddSection();

//add a table
Table table2 = section2.AddTable(true);
table2.ResetCells(2, 3);


//set column width
table2.Rows[0].Cells[0].Width = table.Rows[0].Cells[2].Width = 50F;
table2.Rows[1].Cells[0].Width = table.Rows[1].Cells[2].Width = 50F;

table2.Rows[0].Cells[1].SplitCell(3, 1);
table2.Rows[1].Cells[1].SplitCell(6, 1);


resultName = String.Format(@"D:\temp\AMPO\InformesGenerados\RESULT-{0}.docx", new Random().Next(1, 100).ToString());
if (File.Exists(resultName)) File.Delete(resultName);
spireDoc2.IsUpdateFields = true;
spireDoc2.SaveToFile(resultName, Spire.Doc.FileFormat.Docx);

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Thu Sep 19, 2019 8:58 am

Hi,

Thanks for your detailed information.
I have noticed the issue and posted it to our Dev team. We will let you know once there is any update.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Thu Sep 19, 2019 9:47 am

I am waiting for the resolution.
Thank you very much for your help!

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Wed Oct 02, 2019 8:17 am

good morning! Do you know how the resolution of this subject is going? Do you know if there is any planned resolution date? I must generate certificates by creating tables with characteristics similar to those presented here and I must plan a delivery.

Thank you very much for your help,
Regards,

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Wed Oct 02, 2019 8:38 am

Hi,

Sorry your issue is not resolved yet, our Dev team is still working on it. And I'm afraid I can't provide an accurate timeline about the resolution at this moment. Anyway, we will try our best to fix it ASAP. If there is any good news, I will let you know immediately. Thanks for your understanding.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Thu Oct 03, 2019 7:11 am

Thank you very much for your help,
Regards,

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Wed Oct 16, 2019 2:36 pm

Hello! Do you know how the resolution of this issue is going? I must deliver the developments and the delivery date is already immediate. For me it is urgent to solve this in some way.
Do you know if there is a planned resolution date?

Thank you very much for your help,
Regards,

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Thu Oct 17, 2019 5:57 am

Hi,

Our Dev team has fixed part of your issue but there are still issues. We have given your issue the highest priority and our Dev team is stepping up fixing it. Sorry that there is no resolution date at present. However we have requested our development team to share an ETA at their earliest. We will update you as soon as we get a feedback.
Apologize for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Thu Oct 17, 2019 6:51 am

Thank you very much for your help.
I eagerly await resolution.
Regards,

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Tue Oct 29, 2019 9:03 am

Hello!
Do you know if there has been any progress on this issue?
Thank you very much!

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Tue Oct 29, 2019 9:22 am

Hi,

Your issue will be submitted to test. Once the hotfix is available, we will let you know.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Oct 29, 2019 12:02 pm

Good news!! Thank you very much for your help.
Regards,

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Mon Nov 18, 2019 2:49 pm

Hello!
Do you know if there has been any progress on this issue?
Thank you very much!

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Tue Nov 19, 2019 10:04 am

Hi,

Thanks for your patient waiting.
The hotfix which contains the fix of your issue is available now, please download the Spire.Office Platinum (DLL Only) Version:4.11.1 from the following link.
Website download link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget download link: https://www.nuget.org/packages/Spire.Office/4.11.1

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Tue Nov 19, 2019 10:24 am

Thank you very much! I will try it!

LauraNM
 
Posts: 77
Joined: Tue Feb 19, 2019 1:23 pm

Return to Spire.Doc