Hi,
On a different application, we have a need to only list certain types of parties. Here is an example of the template:
Line above
{ MERGEFIELD :TableStart_Participants" }( IF {MERGEFIELD PARTY_ParticipantTypeCode } = "GRANDMOM" {MERGEFIELD "PARTY_FirstName" } { MERGEFIELD "PARTY LastName" }" ""){ MERGEFIELD "TableEnd_Participants" }
Line below
So the only thing between the tablestart and table end is an if statement. There are 5 parties in the database, but only one is type “GRANDMOM”, so in 4 cases the if statement should result in ‘’ and there would be nothing between the tablestart and tableend. We would like the document to show:
Line above
Grandma Jones
Line below
Instead we are getting 4 blank lines between Line above and Grandma Jones:
*Line above
Grandma Jones
Line below*
Here is how the code looks now:
string newDoc = String.Concat(caseDocsUnc, CaseNumber, "_", FileNumber, "\\", TemplateFile.Substring(0, TemplateFile.Length - 4), " ", dateTimeSuffix, ".DOC");
doc.MailMerge.RemoveEmptyParagraphs = true;
doc.MailMerge.RemoveEmptyRegions = true;
doc.MailMerge.ExecuteWithRegions(dsMerge);
doc.Save(newDoc);
Can you help me understand what needs to be changed to make this suppress the blank lines?
Thanks
Karen