I solve the following problem (after ----) with your help by using RemoveEmptyParagraphs. But it cause another problem. It remove the following as same as word 2003.
«PersonnelID»«Personnel_Reference»
But If I type with space as follows then it will not get rid of line (but word 2003 does get rid of line
«PersonnelID» «Personnel_Reference»
Thanks,
Daljit Singh
-----------------------------------------------------------------------------------------------------------------------
When we manually do mail merge on 2003-2010 with or without spaces, results is different, can be do something like in aspose.word as well. Like
«PersonnelID»
«Personnel_Reference»
«Secondary_Reference»
If Personnel_Reference is missing in data source, then word 2003, do not show blank space, where as word 2010 show blank space, our customers are 2003 based, can we mimic it in aspose.words.