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 Jan 20, 2022 11:29 am

Hi,
Spire_Merge_Split_Columns.zip


I am trying to acheive attached table in docx/pdf.

The table has 6 columns in data rows.
There are two header rows.
First header row should have Header1,Header2,Header3 and Header4.
For second header row, Header1, Header2, Header31, Header32, Header33, Header4. . Header1, Header2 and Header4 should be merged for these header rows as its same column name.

I wrote something like below but this doesnt seems to be working.
table.ApplyHorizontalMerge(0, 2, 4); --- Merging Header3 in first header row
table.ApplyVerticalMerge(0, 0, 1); ---- Merging Header1 cells
table.ApplyVerticalMerge(1, 0, 1); ---- Merging Header2 cells
table.ApplyVerticalMerge(5, 0, 1); ---- Merging Header4 cells

I've attached the expected and actual result and specific module code too. Appreciate your help on this.

Thanks,
Santhoshi.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Fri Jan 21, 2022 8:00 am

Hello,

Thank you for your inquiry.
According to the code you provided, I did a preliminary test with the latest version of SPire.Doc (Spire.Doc Pack(hot fix) Version:9.12.12), and the content of the result Word file is correct.If you were not using the latest version, please first give it a try. If the issue still exists after trying, please provide us with your system information (E.g. Win7, 64 bit) and your application type (E.g. Console app. Net Framework 4.5) for further investigate. Thanks in advance.
In addition, I found that the code "table.ApplyVerticalMerge(4, 0, 1)" in your attachment is incorrect, please modify it to "table.ApplyVerticalMerge(5, 0, 1)".

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Fri Jan 21, 2022 11:23 am

Hi,

I'm using latest version Spire.Doc (9.12.12) only.

I'm using table.ApplyVerticalMerge(5, 0, 1) in code still the same result. My system is Windows 10 Home 64-bit OS. I am using VS 2019 Web API 2 with .Net Framework 4.8

Thanks,
Santhoshi.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Mon Jan 24, 2022 3:05 am

Hello,

Thanks for your feedback.
I tested your case in the same environment with the same settings as you, but still didn't reproduce your issue. I have attached my test project. Please download and test it on your side. Looking forward to your test feedback.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Tue Jan 25, 2022 1:12 pm

Merge and Split Cell.zip
Hello,

Please find the docx and pdf attached where I've implemented using your code. Issue still exists. It might be with the parent cell/table.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Wed Jan 26, 2022 4:01 am

Hello,

Thanks for your feedback.
I reproduced the problem you mentioned, I have logged the issue into our bug tracking system with the ticket number SPIREDOC-7317. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.
In addition, please provide your input Word file so that we can solve your issue more perfectly.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Tue Apr 19, 2022 2:03 pm

Hello All,

It's been a long time that we are waiting for this issue. Appreciate if this can be fixed soon.

thanks,
Santhoshi.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Wed Apr 20, 2022 2:23 am

Hello,

Thanks for following up.
I am sorry that the issue SPIREDOC-7317 is not fully resolved, I have asked our developers to fix it as soon as possible. Once there is any major update, I'll let you know in time.Sorry for the inconvenience caused again.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Sun Jun 05, 2022 6:16 am

Hello Annika,

Do you have any update on this?

Thanks,
Santhoshi.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Mon Jun 06, 2022 2:09 am

Hello,

Thanks for following up.
The good news is that the issue SPIREDOC-7317 is completely resolved. Once the new version is available, I will inform you immediately.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Thu Jun 23, 2022 4:40 pm

Hi Annika,

Could you please let me know if there is any ETA?

Thanks,
Santhoshi.

santuvssantu
 
Posts: 98
Joined: Fri Feb 12, 2016 5:21 pm

Fri Jun 24, 2022 5:36 am

Hello,

Thanks for following up.
Regarding the issue SPIREDOC-7317 has been solved perfectly. Not surprisingly, the next official release will include a fix for this issue. Hope you can be patient.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Mon Aug 01, 2022 9:25 am

Hello,

Thanks for your patience!
Glad to inform you that we just released Spire.Doc Pack(hot fix) Version:10.7.16 which fixes the issue of SPIREDOC-7317.
Please download the new version from the following links to test.

Website link: https://www.e-iceblue.com/Download/download-word-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/10.7.16

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc