Creating a basic report

This section will give you the basic understanding in creating a report from a database in Eclipse.

To create a basic report from the database
  1. On the File menu, click New > Other….
  2. The New wizard opens.

  3. Expand the Crystal Reports node, select Blank Report, and click Next.
  4. Select the CrystalReportsDemo > WebContent node.
  5. In the File name field, type BikeSalesReport.rpt.
  6. Click Finish.
  7. In the Database Explorer view, go to Connections > classpath:/Xtreme[Derby 10.1] > classpath:/Xtreme > Schemas[Filtered] > App > Tables.
  8. Expand the Tables node.
    1. Right-click the CUSTOMER table and click Crystal Reports > Add To Current Report.
    2. Right-click the ORDERS table and click Crystal Reports > Add To Current Report.
    3. The report switches to the Data view in the Crystal Reports editor.

  9. Drag the CUSTOMER_ID field from the CUSTOMER table and drop it on the CUSTOMER_ID field on the ORDERS table to create a relationship between the two tables.
  10. In the Crystal Reports editor, switch back to the layout view.
  11. In the Field Explorer view:
  12. In the Crystal Reports editor, right-click ORDERS.ORDER_AMOUNT and click Summarize.
  13. A summary field appears on the Group1 footer section of the report layout.

  14. Adjust the layout of the report by dragging the fields on the layout view of the Crystal Reports editor.
  15. Save the report.
  16. Switch to the Preview view to view the report.





Business Objects
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/