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 May 24, 2018 5:18 am

We have updated the dll being used to any version in the 6 series and all our mail merges do not remove the blank lines.
Using the dll version 5.9.51 it works properly as expected. Code we use is as below

Document document = new Document();
document.LoadFromFile(templatePath);
document.MailMerge.HideEmptyParagraphs = true;
document.MailMerge.Execute(dt);

jeykev78
 
Posts: 1
Joined: Thu Jun 18, 2015 7:58 am

Thu May 24, 2018 8:00 am

Hello,

Thanks for your post.
I have tested the latest version(Spire.Doc Pack(hot fix) Version:6.5.10) and found that the property "HideEmptyParagraphs" worked well, I suggest you first upgrade your dlls.
If the issue still exists, please send your sample document as well as code snippet to us.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue May 29, 2018 8:29 am

Hello jeykev78,

How is the issue now?
Your feedback would be greatly appreciated.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.Doc

cron