Merging multiple dplx files

Merging multiple dplx files

Forum member · Mar 15, 2007
Hi is it possible to merge multiple dynamic dplx files into one PDF at runtime ?

Re: Merging multiple dplx files

Support · Mar 15, 2007
Hello, You can merge multiple DPLX files at runtime without any problem. You can use the overloaded Run() method of the DocumentLayout object that’s takes the document object returned by the Run method of the first DPLX report. Following is the sample code block: DocumentLayout report = new DocumentLayout( Path.Combine(GetDPLXPath(),"SimpleReport.dplx") ); DocumentLayout report1 = new DocumentLayout( Path.Combine(GetDPLXPath(),"ContactList.dplx") ); Document document = report.Run( ); report1.Run( document ); document.Draw( @"C:\Temp\DynamicPDF.ReportWriter.ConsoleClient.pdf" ); System.Diagnostics.Process.Start( @"C:\Temp\DynamicPDF.ReportWriter.ConsoleClient.pdf" ); In the code above, the document properties like, Author, Creator, etc. will be set from the first report. If you pass in the document object to the run method, then you will have to set these properties manually from code. You can also append DPLX reports to existing PDF documents by using the MergeDocument and passing in an existing PDF file to the constructor instead of using the Document object. Thanks, ceTe Software Support Team

Re: Merging multiple dplx files

Forum member · Mar 15, 2007
sweet, I'm starting to really love this software