XML representation

XML representation

Forum member · May 5, 2009
Is there a way to store XML in a database and supply that to DynamicPDF Generator and have it generate DynamicPDF page elements. We have client-specific page headers that we would like to supply to a PDF report (i.e. images, specific colors in the background, varying margins, heights, maybe a watermark, etc.) and then our report body is standard between clients. We do not want to create a standard class for the report and then create several other client classes that inherit from it just to overwrite the header. I'd like to create one report class and then just make a call to a database which fetches the XML, converts it to a page element, adds it to the PDF, then continues on with the normal PDF creation that we coded in the standard report. Thanks, Chad

Re: XML representation

Support · May 5, 2009
Hello Chad, Yes, you can create the PDF document using the data from a database or an XML file without any problem. You will have to read the XML file using the XML readers from .NET framework and then you can add the data to the PDF. You can refer to the SimpleXMLReport example downloaded with the product download. You can add colors, images, watermarks etc to the PDF document without any problem. Yes, you can write a method which gets the data from a database or an XML file and creates the header. You can refer to our help documentation on our web site. Thanks, ceTe Software Support Team.