Free Support Forum - aspose.com

MailMerge.CleanupOptions does not Remove the Empty Table Rows using .NET

Hi Support Team,

We use mailmerge template with ASPOSE word to replace and generate document. We recently upgraded our package to version 21.4.0.0. After upgrading to the version, we are facing issue while generating table format. Empty columns and rows are getting printed. It works fine when we revert the build to older version. Kindly provide assistance to fix this issue. Refer the snapshot for the issue.

Issue Version 21.4.0.0 Images
empty and column generated.png (136.9 KB)

working version Images working image.png (107.3 KB)

Thanks.
Selva

@anbbala

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi,
Please find attached zip file which has the information you requested.

AsposeForum.7z (7.5 MB)

Thanks
Selvaganapathy

@anbbala

We have logged this problem in our issue tracking system as WORDSNET-22158. You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Could you please share the old version of Aspose.Words that generates correct output?

@tahir.manzoor
It is working fine with the version 17.2.0.0, We are facing issue after upgrading to Version 21.4.0.0

@anbbala

Thanks for sharing the detail. We have logged this detail in our issue tracking system. We will inform you via this forum thread once there is any update available on it.

@tahir.manzoor
Please let us know when can we expect the fix, since our client are stuck with day today activities.

@anbbala

Currently, your issue is under analysis phase. Once we complete the analysis of your issue, we will then be able to provide you an estimate.

@anbbala

Please use the value of MailMerge.UseWholeParagraphAsRegion as true to get the desired output. The default value of this property is true.

var asposedoc = new Aspose.Words.Document(filestream);
asposedoc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveUnusedRegions | MailMergeCleanupOptions.RemoveUnusedFields;
asposedoc.MailMerge.UseWholeParagraphAsRegion = true;
                    
asposedoc.MailMerge.ExecuteWithRegions(xmlDS);
asposedoc.Save(MailmergeDocument + "21.4"+fromFileNames);