Writing lists using template

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Re: Writing lists using template

DynamicPDF CoreSuite for .NET (v8) Forum

 Feb 24 2015 6:04 AM
Is there any controls available for listing dynamic lists of items using the pdf designer template? I have an ICollection of payments that I want to display on the back of a bill which has a lined section

 Feb 25 2015 4:31 AM
anyone any information on how to write dynamic lists of this nature?
 Feb 25 2015 9:34 AM
Posted by a ceTe Software moderator
Hello,

Please note that the report template (DPLX) created using DynamicPDF Designer will need to be used with DynamicPDF ReportWriter to generate PDF report. The DynamicPDF ReportWriter product is specifically designed to generate PDF reports using the data from the database and list of objects. It is not possible to add the lists directly in the Designer’s GUI but you can create PDF by using data from collections objects.

If you have existing PDF and want to add contents (data from the collection objects) on the PDF page dynamically then you can set this PDF as background by setting the path and choosing the desired page by setting the page number in the DPLX file. Add the report elements (RecordBox or RecordArea) at desired locations as per your requirements to the DPLX file. You can refer to the documentation on using templates here. Then use the collection objects as recordset to generate PDF report. You can refer to the documentation on using collection objects as recordset here.

Please make sure you are setting the correct name of the items in the collections objects for the RecordBox or RecordArea. You can refer to the documentation on RecordBox report element here. Also code sample on creating and accessing DPLX files dynamically for generating PDF reports here.

Another way to add lists to the PDF report is using PlaceHolder report element and OrderedList page element. You will need to place the PlaceHolder report element on the DPLX file and dynamically create OrderedList object by adding items of the list to it. Then add this created OrderedList object to the PDF report using the LaidOut event of the PlaceHolder. You can refer to the documentation on event handling here and documentation on OrderedList here. The code sample in the help topic has details to add the barcode page element to the PDF. Similarly you can add OrderedList page element to the PDF. Please note that the Placeholder report element cannot be expanded or splitted.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 1:07 PM.