Generate Adress labels with Linq Reporting Engine

Hallo,

is there a possibility to create mailing labels with a template containing multiple labels per page by using the Aspose LinqReportingEngine? I know that works with MailMerge, but I’m searching for a solution using the reporting engine.

I have attached an example using the mail merge function (which works) and another example which uses the reporting engine.
Both are filled with a DataTable as DataSource. The Reporting Engine gives following error:

<<[Adressline1] Error! Can not get the value of member ‘Adressline1’ on type ‘System.Data.DataRowCollection’. >>

Is there a possibility to make this work?

Greetings
Kirsten

AdressLabelsWithAspose.zip (129.5 KB)

@KiBa123

We have modified your template to match expected output. Please check Avery-Zweckform_3660_reportingEngine_Modified.docx (13.5 KB). Also, please note that for this template, ReportingEngine.BuildReport should be called with the data source name specified as follows:

engine.BuildReport(doc, table, "data");

The following articles explain ideas behind the template changes:

Thank you very much for your help. That works well.

1 Like