SubhasheDocEngine has 'report-export interface components' for providing multiple output format support for Delphi reporting tools. For Quickreport, eDocEngine has the TgtQRExportInterface interface component.You can either let the end-user of the Quickreport application to choose the output provided by eDocEngine in an interactive report 'Save' dialog box or you could export the report programmatically in Object Pascal.On an application built with Quickreport, an instance of this interface component needs to be paired up with an eDocEngine document-creation engine component. For example, to output a Quickreport report to a PDF document, a TgtQRExportInterface instance needs to be paired with a TgtPDFEngine instance on the same form as a Quickreport report component. Interactive Quickreport Report Export. Open your IDE and create a new VCL Forms Application project. Drop the following components on the form. TButton.
Select the TButton and set its Caption property to ' Launch Report'. Select the TADODataSet control and set the following properties. ConnectionString - Use the wizard to connect to an ADO datasource such as aMicrosoft Access database.
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! Asking for help, clarification,.
Programmatic Quickreport ExportYou can make eDocEngine run the report and export the output using aTgtQRExportInterface.RenderDocument overload. Add a TgtPDFEngine, a TgtExcelEngine, and twoTgtQRExportInterface components to a formwith a fully set-up TQRPQuickrep component. Add a button and set the following click-event handler.procedure TForm9.Button3Click(Sender: TObject);begin// Export report to a PDF documentgtPDFEngine1.FileName:= 'eDocQuickreportDemo.pdf';gtPDFEngine1.Preferences.ShowSetupDialog:= false;gtQRExportInterface1.Engine:= gtPDFEngine1;gtQRExportInterface1.
RenderDocument(QRPQuickrep1, false );// Export report to a Excel workbookgtExcelEngine1.FileName:= 'eDocQuickreportDemo.xls';gtExcelEngine1.Preferences.ShowSetupDialog:= false;gtQRExportInterface2.Engine:= gtExcelEngine1;gtQRExportInterface2. RenderDocument(QRPQuickrep1, false );end;Programmatic Quickreport Export Using QRP FileYou can also export a report from a QRP file. There is anotherTgtQRExportInterface.RenderDocument overload forthis. Add a TgtPDFEngine, a TgtExcelEngine, anda TgtQRExportInterface component to a formthat has a TQRPQuickrep component. Add a button and then add this click-event handler for it.procedure TForm9.Button2Click(Sender: TObject);begingtPDFEngine1.FileName:= 'eDocQuickReportDemo.pdf';gtPDFEngine1.Preferences.ShowSetupDialog:= false;gtQRExportInterface1.Engine:= gtPDFEngine1;gtQRExportInterface1.
By Manikanta Sai PrasadXtremeDocumentStudio is a next-generation multi-format document-processing framework for VCL and FireMonkey platform. In the latest release, we have added a report-export interface component for QuickReporter.The new component is called TgtQRExport. You just need to drop it on your existing QuickReport application and this component will automatically add additional export formats for the report.
Interactive Report-ExportLet us create a simple QuickReport application to see how TgtQRExport works. Create a new VCL Forms application. Drop a TButton, a TQRPQuickrep and a TADODataSet on the form. Set the TADODataSet to a data source.
(I have set it to the. Don't forget to set its Active property to true.). Set the DataSet property of the TQRPQuickrep to the TADODataSet. Set the Bands ยป HasDetail to true. On the detail band of the report, place TQRDBText instances for each column of the dataset.