There are 3 ways External Report can be created.
- Data Source: Report uses the grid's item source to create a Simple Report
- Current Record: Report uses the grid's selected record to create source based o the type of report (Simple / Master-Detail) created.
- Master Record: Report uses grid's master record and items source to create a master-detail collection for a Master-Detail Report.
Data Source
Report uses the grid's item source to create a Simple Report- Open the Report Designer, select New > Simple Report and click Next
- Select the Client class from the list
- Select all the fields to be shown in the report
- Customize your report
- Select printer
- At the end, "Select Data Connection" screen can be found. Check Preview Source to provide Source externally.
Select: Data Source
- After selecting, click on Finish
- "Save" the newly generated report and Name it.
Master record
Report uses the grid's master record and items source to create a master-detail collection for a Master-Detail Report.- Open the Report Designer, select New > Master Detail Report
- Select Master Type & Detail Type
- Select "Master type Display Fields" & "Select Detail type Display Fields"
- At the end, choose "Master Record"
- "Save" the newly generated report and Name it.
Current record
Report uses the grid's selected record to create source based on the type of report (Simple / Master-Detail) created.- User can choose any Report Type - Simple or Master Detail Report
- Select Master type or Detail Type
- Select "Master type" or "Detail type" fields
- At the Preview Source, select "Current Record"
- "Save" the newly generated report and Name it.
How to use Report as Menu Item?
- Open Tools > Local Menu
- Select Control Name used in "Client Class" when creating the report.
- In Control Type, select "Report Preview", & in Control, write the name of report that was saved in previous step.
- After saving, a new Menu can be seen. And with just a click on the menu, report is ready.
- Selected Record: “SourceType=UseCurrentRecord”
- Master Record: "SourceType=UseMasterRecord"
- Data Grid: "SourceType=UseDataSource"