Mail Merge Table Row Height

I'm doing a Purchase Order using the ExecuteNestedGroup on the mail merge feature of DocIO in ASP.NET. Pretty pleased with how its working except for one thing.

I have created a single row table in Word to contain the items in the purchase order. In the first cell I have merge fields {BeginGroup:Items}{OrderCode} and in the last cell I finish it with {EndGroup:Items} It's nicely creating a new row in the table for each item on the purchase order. Far easier than any other third party component I've used, so that's a big plus.

So my problem is that because of the column width I require for the first column, those first couple of merge fields wraps over four lines, sort of like this:

-------------
{BeginGr
oup:Items}
{OrderCo
de}
------------

The word template then resizes the table row to fit that data. Now when I do the actual merge, the cell gets the data which only takes one line and then it has a heap of white space below it, like this:

-------------
ABC123


-------------

I get that Word has just used the row spacing from the template document but is there anyway of collapsing the table row so it fits properly?

Thanks

Jeff

BTW. I noticed the other post got moved to ASP.NET  Core Forum. The reason I have posted here is when I tried to post in ASP.NET Core it was insisting on a component name, which did not contain DocIO. When I tried to post without specifying a component, it kept crashing.

3 Replies

MJ Mohanaselvam Jothi Syncfusion Team June 30, 2018 01:32 AM UTC

Hi Jeff,

Thank you for contacting Syncfusion support.

Regarding resizes the table row to fit that data:
We suspect that the table row in your template Word document contains at least height value. So, after executing mail merge in the table, it resizes the row height but preserves with at least row height value (if it contains less contents). We suggest you to uncheck the “Specify height” option for table row in the template Word document. Then, it resizes the table row height based on the contents after executing mail merge in that table as per your requirement.

Please refer the below highlighted screenshot to uncheck “Specify height” option of table row using Microsoft Word application:
Right click on table row -> Table properties -> go to Row tab -> uncheck Specify height.
 
 
 
 


Regarding when I tried to post in ASP.NET Core it was insisting on a component name, which did not contain DocIO:
We suspect that you have selected ASP.NET Core platform under “Web (Essential JS 2)” category when posting your query. We suggest you to select ASP.NET Core platform under “Web (Essential JS1)” category as per highlighted in the below screenshot to post your query regarding DocIO in ASP.NET Core platform:

 
 
 
 


Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 



JB Jeff Butterworth July 1, 2018 04:43 AM UTC

Thank you! This has resolved my issue.


MJ Mohanaselvam Jothi Syncfusion Team July 2, 2018 05:43 AM UTC

Hi Jeff,

Thank you for your update.

We are glad to know that our solution has resolved your issue. Please get back to us if you need any other assistance.
We will be happy to assist you as always.

Regards,
Mohanaselvam J
 


Loader.
Up arrow icon