Aspose.Words .Net - Merge regions without line breaks

I need to merge the following data source:
to be displayed as:
Apple, Banana, Orange

The problem is that template like
<TableStart:Fruits><TableEnd:Fruits>
results in:
Apple,
Banana,
Orange,

So there are 2 questions here:

  1. How to prevent inserting new line for every item from the list
  2. How to remove last delimiter when merging list

Thanks in advance

Hi
Thanks for your inquiry.
Currently each record in a mail merge region is repeated on a separate paragraph. We are looking into providing more mail merge syntax so that repeating data in the same paragraph is possible. We will keep you informed when this is ready.
In the mean time you can try the work around provided in this thread .
If you have any further issues please feel free to ask.
Thanks,

Hi,

Thanks for being patient.

Regarding WORDSNET-3197, it is to update you that we have closed this issue. We have introduced a new LINQ Reporting Engine which is a part of the Aspose.Words API that enables you to build reports using an extended set of reporting features. The engine enables you to reference business objects of your application in report templates directly, which agrees well with Domain-Driven Design widely used in modern software development. Moreover, the engine uses a subset of C# language in its template syntax. These features enable you as a developer to compose report templates in a familiar and intuitive way.

For example, using this new reporting engine you can repeat part of a Paragraph as follows:

DocumentBuilder builder = new DocumentBuilder();
builder.Write("The items are: <<foreach [item in items]>><<[item]>>, <</foreach>>and others.");
Document doc = builder.Document;
ReportingEngine engine = new ReportingEngine();
engine.BuildReport(doc, new string[]
{
    "Item1",
    "Item2",
    "Item3"
}, "items");
doc.Save("out.docx");

For more details, please visit this article:
https://docs.aspose.com/words/net/linq-reporting-engine-api/

I hope, this helps.

Best regards,

Hi,

Thanks for being patient.

Regarding WORDSNET-3197, it is to update you that we have closed this issue. We have introduced a new LINQ Reporting Engine which is a part of the Aspose.Words API that enables you to build reports using an extended set of reporting features. The engine enables you to reference business objects of your application in report templates directly, which agrees well with Domain-Driven Design widely used in modern software development. Moreover, the engine uses a subset of C# language in its template syntax. These features enable you as a developer to compose report templates in a familiar and intuitive way.

For example, using this new reporting engine you can repeat part of a Paragraph as follows:

DocumentBuilder builder = new DocumentBuilder();
builder.Write("The items are: <<foreach [item in items]>><<[item]>>, <</foreach>>and others.");
Document doc = builder.Document;
ReportingEngine engine = new ReportingEngine();
engine.BuildReport(doc, new string[]
{
    "Item1",
    "Item2",
    "Item3"
}, "items");
doc.Save("out.docx");

For more details, please visit this article:
https://docs.aspose.com/words/net/linq-reporting-engine-api/

I hope, this helps.

Best regards,

The issues you have found earlier (filed as WORDSNET-3197) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(11)