How to create DataGrid

How to create DataGrid

Forum member · Jun 28, 2013
Good afternoon, You can create a datagrid within dplx existing file? In this example they do, but I see that create a dplx and only wish to add a datagrid to an existing dplx file. http://www.dynamicpdf.com/Products/DynamicPDF/Examples/Web_CSharp/GeneratorExamples/SourceView.aspx?class=SimpleDataGridReport

Re: How to create DataGrid

Support · Jul 1, 2013
Hello, The DPLX file is used internally by the DynamicPDF ReportWriter for .NET API to generate the PDF report. The DynamicPDF Designer helps to build your report template(DPLX) by adding the supported report elements to it. It is not possible to add datagrid to the DPLX file using our DynamicPDF Designer tool. You can dynamically set the desired connection string and query using event driven queries. Please refer documentation on EventDriven queries here . Thanks, ceTe Software Support Team.

Re: How to create DataGrid

Forum member · Jul 3, 2013
Thanks for responding. I add the event envetdriven to underreporting and get the following error message in this line: EventDrivenQuery query = (EventDrivenQuery)sender; Errol: Unable to cast object of type 'ceTe.DynamicPDF.ReportWriter.Data.SqlQuery' to type 'ceTe.DynamicPDF.ReportWriter.Data.EventDrivenQuery'.

Re: How to create DataGrid

Support · Jul 4, 2013
Hello, We did some testing on our end and we are able to generate the PDF report using the sample code given in the above help topic. Please send over the following details to our [^a|mailto:support@cete.com|opennewwindow|support ^] so that they can look into it further. 1.DPLX file. 2.Sample code or project which you are using to generate PDF report. 3.Version and build number of the DynamicPDF dll file. Thanks, ceTe Software Support Team.

Re: How to create DataGrid

Forum member · Jul 8, 2013
Thanks, I solved that error. Now I get an error in report.Run (). string path = Server.MapPath ("CotizadorCoberturaDetalles.aspx.dplx");          DocumentLayout report = new DocumentLayout (path);          Query query1 = report.GetQueryById ("Query1");          query1.OpeningRecordSet + = new OpeningRecordSetEventHandler (Query_OpeningRecordSet);          Document document = report.Run ();          document.Draw (@ "C: \ Temp \ report.pdf"); System.NullReferenceException: Object reference not set to an instance of an object. Any idea because it gives me this exception when executing the run () method

Re: How to create DataGrid

Support · Jul 9, 2013
Hello, Please make sure that you are using the correct field names in the DPLX file which your query returns. If you continue getting the error even after confirming the correct field names then please send over the following details to our [^a|mailto:support@cete.com|opennewwindow|support^] so that they can look into it further. 1.DPLX file. 2.Sample code or project used to generate PDF report. 3.Full error message along with stack trace. 4.Exact version and build number of the DynamicPDF dll file. Thanks, ceTe Software Support Team.

Re: How to create DataGrid

Forum member · Jul 9, 2013
Thanks for responding, I'm still with the error. I'm trying to write to support but I get this error: Delivery to the Following recipient failed permanently:

Re: How to create DataGrid

Support · Jul 9, 2013
Hello, We have sent an email to you through our support. Please reply to it and send over all the requested information. Thanks, ceTe Software Support Team.

Re: How to create DataGrid

Forum member · Jul 9, 2013
Try to answer the message sent to me, but I get the same error.

Re: How to create DataGrid

Support · Jul 9, 2013
Hello, We have not seen any issue with our [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] email address as we have been receiving emails at that address from other customers. Maybe your email server does not accept attachments or the size of the attachment is too big. You can try responding to our email without attachments to see if that works. Also check with your system admin with regards to why you are unable to send emails to us. Thanks, ceTe Software Support Team.