Diplaying in the dplx report in .NET

Diplaying in the dplx report in .NET

Forum member · May 21, 2008
Guys, I am currently evaluating the software for a possible purchase. I am new to .NET as well as the Generator. I have successfully installed the products, created a report from the Dynamic PDF Writer and now, i would like to incorporate that report into my small .NET application (VB). I am not sure about how to do it - My first attempt ended up in the application displaying all the XML codes of the report and could not create the pdf file. HELP PLEASE. regards, Sneid

Re: Diplaying in the dplx report in .NET

Support · May 21, 2008
Hello Sneid, You can associate the dplx file to the aspx page in two ways. One by inheriting the DplxWebForm and another by using the DocumentLayout class. Following is the sample code if you use the DocumentLayout class without inheriting your webpage from DplxWebForm. DocumentLayout report = new DocumentLayout(@"Path of dplx file"); Document document = report.Run(); document.Draw("Path to save PDF"); If you are planning to inherit from DplxWebForm then you will have to create the dplx file with the name of your webpage ( webpagename.aspx.dplx ). You will have to place this dplx file along with your webpage. Following is the sample code for this. public class DplxWebExample : ceTe.DynamicPDF.ReportWriter.DplxWebForm { private void Page_Load(object sender, EventArgs e) { DrawPdfToWeb("NewReport.pdf"); } } You can refer to the help documentation and the examples downloaded with the product download. Thanks, ceTe Software Support Team.