ParameterDictionary

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  ParameterDictionary

DynamicPDF CoreSuite for .NET (v8) Forum

 Mar 03 2016 8:55 AM
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
 Mar 03 2016 4:51 PM
Posted by a ceTe Software moderator
Hello,

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 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.
 Mar 04 2016 8:33 AM
No, 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); };
 Mar 04 2016 3:59 PM
Posted by a ceTe Software moderator
Hello,

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.

All times are US Eastern Standard time. The time now is 3:44 PM.