I have go through the document. but I am not sure where I have to give the merge option. I am attaching a sample code MergeCell.zip (1.5 KB) . Can you please help me where I have to add the merging code.
The above code is working fine with the given scenario. But if any column is added after the merged column, then the data column is not coming and the merged cell is also incorrect. I need a dynamic code so I have updated the code. I am attaching the updated code MergeCell2.zip (2.9 KB). its output is merge_table.docx (13.2 KB). My expected output is expected_out.docx (13.2 KB) . Please help me to solve this issue.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.