Quickreport 5.0.6 For Delphi 10.2 Tokyo Full Source

51 views
Skip to first unread message

Ardith Hoefel

unread,
Jul 1, 2024, 5:43:29 PM7/1/24
to pycrazzricdau

Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source

Quickreport is a set of components, forms and reports that allows you to create complex and professional reports within your Delphi or C++ Builder applications. Quickreport supports a wide range of features, such as data-aware controls, rich text formatting, charts, barcodes, QR codes, export to various formats, and more.

Quickreport 5.0.6 is the latest version of Quickreport for Delphi 10.2 Tokyo, which is the second update of Delphi 10 Seattle. Delphi 10.2 Tokyo introduces new features and enhancements for Windows, Linux, iOS, Android and macOS development, such as FireMonkey Linux platform support, improved IDE menus for faster navigation, new VCL controls, and more.

If you want to use Quickreport 5.0.6 for Delphi 10.2 Tokyo, you need to download and install the full source code package from the official website. The full source code package includes the Quickreport components, forms and reports, as well as the QRDesign end-user report designer component. You can also find the legacy versions of Quickreport for older versions of Delphi and C++ Builder on the same website.

To install Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source, you need to follow these steps:

    • Extract the downloaded zip file to a folder of your choice.
    • Open Delphi 10.2 Tokyo and go to Component > Install Packages.
    • Click on Add and browse to the folder where you extracted the zip file.
    • Select the dclqrt250.bpl file and click on Open.
    • Click on OK to close the dialog box.
    • Go to Tools > Options > Environment Options > Delphi Options > Library.
    • Add the following paths to the Library path, separated by semicolons:
      • C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl;
      • C:\Users\Public\Documents\Embarcadero\Studio\19.0\Dcp;
      • C:\Users\Public\Documents\Embarcadero\Studio\19.0\Quickrep506;
      • C:\Users\Public\Documents\Embarcadero\Studio\19.0\Quickrep506\Lib;
      • C:\Users\Public\Documents\Embarcadero\Studio\19.0\Quickrep506\LibD25;
      • C:\Users\Public\Documents\Embarcadero\Studio\19.0\Quickrep506\LibD25x64;
      • Note: You may need to adjust the paths according to your installation folder and drive letter.
      • Click on OK to save the changes.
      • Restart Delphi 10.2 Tokyo.
      • You should now see the Quickreport components in the QReport tab of the component palette.
      • You can also access the QRDesign component from the Tools menu.

      You are now ready to use Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source in your projects.

      I hope this article was helpful for you. If you have any questions or feedback, please let me know in the comments below. Thank you for reading! ? In this article, I will show you how to use Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source to create a simple report with some data and a chart. You will need the following components for this example: - A TQuickRep component, which is the main report component that contains the report bands and controls. - A TQRBand component, which is a section of the report that can have different types of controls, such as text, images, shapes, etc. - A TQRLabel component, which is a text control that can display static or dynamic text. - A TQRDBText component, which is a data-aware text control that can display data from a dataset field. - A TQRChart component, which is a chart control that can display data from a dataset or a series of values. - A TClientDataSet component, which is a memory-based dataset that can store data in fields and records. - A TDataSource component, which is a link between a dataset and data-aware controls. To create the report, follow these steps: 1. Create a new VCL Forms Application project in Delphi 10.2 Tokyo. 2. Save the project as QRDemo.dpr and the main form as Unit1.pas. 3. Drop a TQuickRep component on the form and set its Name property to Report. 4. Double-click on the Report component to open the report designer window. 5. In the report designer window, right-click on an empty area and select Insert Band. Choose Title Band from the list of band types. 6. Drop a TQRLabel component on the title band and set its Caption property to "Sales Report". You can also adjust its font size and alignment properties as you like. 7. Right-click on an empty area again and select Insert Band. Choose Detail Band from the list of band types. 8. Drop a TQRDBText component on the detail band and set its DataField property to "ProductName". This will display the product name from the dataset field in the report. 9. Drop another TQRDBText component on the detail band and set its DataField property to "Quantity". This will display the quantity sold from the dataset field in the report. 10. Drop another TQRDBText component on the detail band and set its DataField property to "Price". This will display the unit price from the dataset field in the report. 11. Drop another TQRDBText component on the detail band and set its DataField property to "Total". This will display the total amount from the dataset field in the report. 12. You can also add some labels above each data-aware control to indicate what they are displaying. For example, you can add a label with the caption "Product Name" above the first TQRDBText control, and so on. 13. Right-click on an empty area again and select Insert Band. Choose Summary Band from the list of band types. 14. Drop a TQRChart component on the summary band and set its Name property to Chart. 15. Double-click on the Chart component to open the chart editor window. 16. In the chart editor window, click on the Add Series... button and select Pie Series from the list of series types. 17. Set the series name to "Sales" and click on OK. 18. Click on the series name in the left panel and then click on the Data Source tab in the right panel. 19. Set the data source type to "Dataset". 20. Set the data source to "Report.DataSet". 21. Set the label field to "ProductName". 22. Set the value field to "Total". 23. Click on OK to close the chart editor window. 24. You can also adjust the chart size, position, title, legend, colors, etc. as you like in the report designer window. You have now created a simple report with some data and a chart using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. To run the report, you need to provide some data for it. For this example, I will use a TClientDataSet component to store some sample data in memory. You can also use any other dataset component that can connect to a database or a file. To create the sample data, follow these steps: 1. Switch back to the form designer window and drop a TClientDataSet component on the form. Set its Name property to DataSet. 2. Double-click on the DataSet component to open the fields editor window. 3. In the fields editor window, right-click on an empty area and select New Field.... 4. Create a new field with the following properties: - Name: ProductName - Type: ftString - Size: 20 5. Repeat the same steps to create three more fields with the following properties: - Name: Quantity - Type: ftInteger - Size: 0 - Name: Price - Type: ftCurrency - Size: 0 - Name: Total - Type: ftCurrency - Size: 0 6. Click on OK to close the fields editor window. 7. Right-click on the DataSet component and select Create DataSet. This will create an empty dataset with the defined fields in memory. 8. Right-click on the DataSet component again and select Edit DataSet. This will open the data editor window where you can enter some sample data for the report. 9. Enter some sample data for the report, such as: ProductName Quantity Price Total ----------- -------- ----- ----- Apple 10 1.00 10.00 Banana 20 0.50 10.00 Cherry 30 0.20 6.00 Orange 40 0.25 10.00 10. Click on OK to close the data editor window. 11. Drop a TDataSource component on the form and set its Name property to DataSource. 12. Set the DataSet property of the DataSource component to DataSet. 13. Set the DataSet property of the Report component to DataSet. You have now provided some data for the report. To preview the report, follow these steps: 1. Drop a TButton component on the form and set its Caption property to "Preview". 2. Double-click on the "Preview" button to create an event handler for its OnClick event. 3. In the code editor window, write the following code for the event handler: ```delphi procedure TForm1.Button1Click(Sender: TObject); begin Report.Preview; end; ``` 4. Save and run the project. 5. Click on the "Preview" button to see the report in a preview window. You should see something like this: ![Report Preview] You have now successfully created and previewed a simple report with some data and a chart using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. I hope this article was helpful for you. If you have any questions or feedback, please let me know in the comments below. Thank you for reading! ? : [Quickreport website](http://www.quickreport.co.uk/) : [Quickreport legacy versions](http://www.quickreport.co.uk/index.php/legacy-versions/) : [Delphi 10.2 Tokyo Release Notes](http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Release_Notes) : [Report Preview Image](http://ts1.mm.bing.net/th?id=OIP.GURnZicaENMLYBMZN9k1LwHaFS&pid=15.1) In this article, I will show you how to use the QRDesign component to allow the end-users of your application to design and modify their own reports using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. You will need the following components for this example: - A TQRDesign component, which is the end-user report designer component that provides a graphical interface for creating and editing reports. - A TQuickRep component, which is the main report component that contains the report bands and controls. - A TClientDataSet component, which is a memory-based dataset that can store data in fields and records. - A TDataSource component, which is a link between a dataset and data-aware controls. To create the end-user report designer, follow these steps: 1. Create a new VCL Forms Application project in Delphi 10.2 Tokyo. 2. Save the project as QRDesignDemo.dpr and the main form as Unit1.pas. 3. Drop a TQRDesign component on the form and set its Name property to QRDesign. 4. Drop a TQuickRep component on the form and set its Name property to Report. 5. Drop a TClientDataSet component on the form and set its Name property to DataSet. 6. Drop a TDataSource component on the form and set its Name property to DataSource. 7. Set the DataSet property of the DataSource component to DataSet. 8. Set the DataSet property of the Report component to DataSet. 9. Set the Report property of the QRDesign component to Report. You have now created the basic components for the end-user report designer. To provide some sample data for the report, follow these steps: 1. Double-click on the DataSet component to open the fields editor window. 2. In the fields editor window, right-click on an empty area and select New Field.... 3. Create a new field with the following properties: - Name: ProductName - Type: ftString - Size: 20 4. Repeat the same steps to create three more fields with the following properties: - Name: Quantity - Type: ftInteger - Size: 0 - Name: Price - Type: ftCurrency - Size: 0 - Name: Total - Type: ftCurrency - Size: 0 5. Click on OK to close the fields editor window. 6. Right-click on the DataSet component and select Create DataSet. This will create an empty dataset with the defined fields in memory. 7. Right-click on the DataSet component again and select Edit DataSet. This will open the data editor window where you can enter some sample data for the report. 8. Enter some sample data for the report, such as: ProductName Quantity Price Total ----------- -------- ----- ----- Apple 10 1.00 10.00 Banana 20 0.50 10.00 Cherry 30 0.20 6.00 Orange 40 0.25 10.00 9. Click on OK to close the data editor window. You have now provided some data for the report. To launch the end-user report designer, follow these steps: 1. Drop a TButton component on the form and set its Caption property to "Design". 2. Double-click on the "Design" button to create an event handler for its OnClick event. 3. In the code editor window, write the following code for the event handler: ```delphi procedure TForm1.Button1Click(Sender: TObject); begin QRDesign.Execute; end; ``` 4. Save and run the project. 5. Click on the "Design" button to see the end-user report designer window. You should see something like this: ![End-User Report Designer] You have now successfully launched the end-user report designer using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. In the end-user report designer window, you can use the toolbar, the menu, and the object inspector to create and edit your own reports. You can also use the preview, print, and export buttons to see the results of your report design. For more information on how to use the end-user report designer, you can refer to the online help or the user manual provided by Quickreport. I hope this article was helpful for you. If you have any questions or feedback, please let me know in the comments below. Thank you for reading! ? : [End-User Report Designer Image](http://ts1.mm.bing.net/th?id=OIP.GURnZicaENMLYBMZN9k1LwHaFS&pid=15.1) : [Quickreport website](http://www.quickreport.co.uk/) : [Quickreport online help](http://www.quickreport.co.uk/index.php/online-help) : [Quickreport user manual](http://www.quickreport.co.uk/index.php/user-manual) In this article, I will show you how to use the QRDesign component to customize the appearance and behavior of the end-user report designer using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. You will need the following components for this example: - A TQRDesign component, which is the end-user report designer component that provides a graphical interface for creating and editing reports. - A TQuickRep component, which is the main report component that contains the report bands and controls. - A TClientDataSet component, which is a memory-based dataset that can store data in fields and records. - A TDataSource component, which is a link between a dataset and data-aware controls. To create the end-user report designer, follow the steps from the previous article. To customize the end-user report designer, follow these steps: 1. Switch back to the form designer window and select the QRDesign component. 2. In the object inspector, you can see a number of properties that control the appearance and behavior of the end-user report designer. For example, you can use the following properties: - AllowAdd: Determines whether the user can add new components to the report. - AllowDelete: Determines whether the user can delete existing components from the report. - AllowEdit: Determines whether the user can edit the properties of the components in the report. - AllowMove: Determines whether the user can move or resize the components in the report. - AllowPreview: Determines whether the user can preview the report in a separate window. - AllowPrint: Determines whether the user can print the report to a printer or a file. - AllowSave: Determines whether the user can save or load the report to or from a file. - Color: Determines the background color of the end-user report designer window. - Caption: Determines the caption of the end-user report designer window. - Font: Determines the font of the end-user report designer window. - ShowGrid: Determines whether to show a grid on the report design surface. - SnapToGrid: Determines whether to snap the components to the grid when moving or resizing them. 3. You can change any of these properties according to your preferences or requirements. For example, you can set the AllowAdd property to False if you want to prevent the user from adding new components to the report. You can also set the Caption property to "My Report Designer" if you want to change the title of the end-user report designer window. 4. Save and run the project. 5. Click on the "Design" button to see how your changes affect the end-user report designer window. You have now successfully customized the end-user report designer using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. I hope this article was helpful for you. If you have any questions or feedback, please let me know in the comments below. Thank you for reading! ? : [Previous article] In this article, I will show you how to use the QRDesign component to add some advanced features and functionalities to the end-user report designer using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. You will need the following components for this example: - A TQRDesign component, which is the end-user report designer component that provides a graphical interface for creating and editing reports. - A TQuickRep component, which is the main report component that contains the report bands and controls. - A TClientDataSet component, which is a memory-based dataset that can store data in fields and records. - A TDataSource component, which is a link between a dataset and data-aware controls. To create the end-user report designer, follow the steps from the previous articles. To add some advanced features and functionalities to the end-user report designer, follow these steps: 1. Switch back to the form designer window and select the QRDesign component. 2. In the object inspector, you can see a number of events that allow you to customize the behavior of the end-user report designer. For example, you can use the following events: - OnBeforePreview: Occurs before the report is previewed in a separate window. - OnBeforePrint: Occurs before the report is printed to a printer or a file. - OnBeforeSave: Occurs before the report is saved to a file. - OnAfterLoad: Occurs after the report is loaded from a file. - OnSelectionChanged: Occurs when the user selects or deselects a component in the report design surface. - OnComponentAdded: Occurs when the user adds a new component to the report design surface. - OnComponentDeleted: Occurs when the user deletes an existing component from the report design surface. 3. You can write your own code for any of these events according to your preferences or requirements. For example, you can write some code for the OnBeforePreview event to show a message box with some information before previewing the report. To do this, follow these steps: - Double-click on the OnBeforePreview event in the object inspector to create an event handler for it. - In the code editor window, write the following code for the event handler: ```delphi procedure TForm1.QRDesignBeforePreview(Sender: TObject); begin ShowMessage('You are about to preview the report.'); end; ``` 4. Save and run the project. 5. Click on the "Design" button to see the end-user report designer window. 6. Click on the "Preview" button to see how your code affects the end-user report designer window. You should see a message box like this: ![Message Box] You have now successfully added some advanced features and functionalities to the end-user report designer using Quickreport 5.0.6 for Delphi 10.2 Tokyo Full Source. I hope this article was helpful for you. If you have any questions or feedback, please let me know in the comments below. Thank you for reading! ? : [Previous articles] : [Message Box Image](http://ts1.mm.bing.net/th?id=OIP.GURnZicaENMLYBMZN9k1LwHaFS&pid=15.1) 6500f7198a
      Reply all
      Reply to author
      Forward
      0 new messages