Hi
I have a word template with this merge fields:
«TableStart:IfShowIt»
Test test test
«TableStart:MyTable»
«TableEnd:MyTable»
«TableEnd:IfShowIt»
When I load this in my .Net 5 project, the EndField of the region is null:
var regions = _document.MailMerge.GetRegionsByName(“IfShowIt”);
var region = regions.First();
// region.EndField is null. Why?
Whats going wrong? I want to remove the whole Region “IfShowIt”. How can I do that?
Another point is, when I make
var regions = _document.MailMerge.GetRegionsByName(“MyTable”);
var region = regions.First();
the region.StartField.FieldName ist correct (“TableStart:MyTable”), but the region.EndField.FieldName is wrong (“TableEnd:IfShowIt”)
@marco.wittwer
Please ZIP and attach your input Word document here for testing. We will investigate the issue and provide you more information on it.
@marco.wittwer
Your template document does not contain the valid region. The mail merge region field should start with TableStart:. Please check the screenshot of your template document. mail merge template.png (22.9 KB)
Sorry, this was the wrong template. This ist the correct one:
Template.zip (9.9 KB)
@marco.wittwer
We have logged this problem in our issue tracking system as WORDSNET-22717. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
The issues you have found earlier (filed as WORDSNET-22717) have been fixed in this Aspose.Words for .NET 21.10 update also available on NuGet.