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 Jun 18, 2015 2:27 pm

Hello

I'm executing the merge funcionality of Spire.doc

document.MailMerge.ExecuteWidthNestedRegion(dsData, list);

It works great, but when I want to format a mergeField like this in a doc template:


MERGEFIELD COBERTURA_NAME \* Caps


It doesnt' work. The format of the field doesn't change

Can you help me?

Thanks in advance

deckerix@gmail.com
 
Posts: 3
Joined: Wed Apr 15, 2015 10:56 am

Fri Jun 19, 2015 6:07 am

Hello,

Thanks for your inquiry. I have tested the scenario using Spire.Doc Pack(hot fix) Version:5.4.36 and have not found the issue you mentioned.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Jun 19, 2015 7:36 am

Hi Beatsy.

Thanks for the response.

I have dowload the hotfix but it's still not working.

Maybe my template is not well formatted. I have just attached the template and the xml file here.

Thanks again

deckerix@gmail.com
 
Posts: 3
Joined: Wed Apr 15, 2015 10:56 am

Fri Jun 19, 2015 8:41 am

Hello,

Thanks for your information. I found that in your Xml file all strings are capitalized. But “\*Caps” function is that prints the first letter of each word in upper case. So the format of the field doesn't change after merging mail.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Jun 19, 2015 8:59 am

Hello Betsy

There is something I don't understand

In my Xml all the strings are not capitalized. All the strings are in uppercase. For example:

<Coberturas>
<INVENTORY_ITEM_ID>587090</INVENTORY_ITEM_ID>
<COBERTURA_NAME>SUBSIDIO MATRICULACION</COBERTURA_NAME>
</Coberturas>

If I use "\* Caps", the merge action should have replaced the strings into:

"Subsidio Matriculacion"

What do you think?

Thanks

deckerix@gmail.com
 
Posts: 3
Joined: Wed Apr 15, 2015 10:56 am

Fri Jun 19, 2015 9:39 am

Hello,

Thanks for your information. Sorry that I have a mistake. I have reproduced your issue and posted it to our Dev team. Once it is resolved, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Jun 23, 2015 6:27 am

Hello,

After investigation, we found that the documentation for MS Word says that
\* Caps Capitalizes the first letter of each word.
Other letters remain unchanged, so if the strings are “SUBSIDIO MATRICULACION”, the result will remain unchanged. And if the strings are “subsidio matriculacion”, the result will be “Subsidio Matriculacion”.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc