Does anyone know of a way to generate multi-record reports using a ParameterDictionary? The following piece of documentation mentions that you can reference parameters from within Record Area and Record Box elements, which are populated by calling the DocumentLayout.Run() overload that accepts a ParameterDictionary as the first argument. However, the article gives no indication about how to produce a report with multiple detail elements using the same mechanism.
http://www.dynamicpdf.com/Support/NET_Help_Library_16_02/#Report%20Parameters.html
ParameterDictionary
Re: ParameterDictionary
Support · Mar 3, 2016Hello,
Here is the link
that shows how to add multiple reports (each report has its own “Detail” section) in the same dplx template. The parameters added via the parameter dictionary are accessible in both reports. If this is not what you are looking for then please email a screenshot or a sample report to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] along with additonal details about your requirement so we can get a better understanding and advise you accordingly.
Thanks,
ceTe Software Support Team.
Re: ParameterDictionary
Forum member · Mar 4, 2016No, what I was looking for was a way of supplying a list of in-memory objects programmatically to the DocumentLayout class, rather than using an SQL query in the document itself to retrieve the record set. This seems to be what I was looking for:
DocumentLayout reportDocument = new DocumentLayout(pathToDPLXFile);
Query query1 = reportDocument.GetQueryById("Query1");
query1.OpeningRecordSet += (sender, e) => {
e.RecordSet = new EnumerableRecordSet(recordSet); };
Re: ParameterDictionary
Support · Mar 4, 2016Hello,
Yes, you can pass in a list of objects
or a data table
during runtime instead of specifying a SQL query in the document template.
Thanks,
ceTe Software Support Team.