Crystal Reports for Eclipse Designer Guide

To create a new Java class

  1. On the File menu, point to New, and click Project.
  2. Expand the Crystal Reports node, click Crystal Reports Web Project and then click Next.
    Note:
    • Instead of creating a Crystal Reports Web Project, you could create a Java Project or a J2EE Utility Project.
    • If you use a Java Project, it will be converted to a J2EE Utility Project when you drag and drop the POJO data source to the report at design time.
    • Project dependencies are automatically examined by the deployment assistance feature. Dependencies will be added automatically if your report is in a Java Project or a J2EE Utility Project. For the Crystal Reports Web Project, the deployment assistance feature doesn't check for dependencies if the web project contains the report.
  3. Enter a name for the project and click Finish.
  4. In the Package Explorer view, right-click your project, point to New and click Class.
  5. Enter a name for your class and click Finish.
  6. Type the code for your new Java class.
    For example, a simple POJO class might look something like the following:
    public class Employee {
         public int employee_ID;
         private String lastName;
         public Employee(int eid, String ln)
         {
              employee_ID = eid;
              lastName = ln;
         }
         public String getLastName()
         {
              return lastName;
         }
    }
    
    Note:
    • Only non-static public "get" and "is" methods with no input parameters and non-static public fields are supported.
    • The following data types are supported for POJO datasources:
    • boolean
    • byte
    • char
    • double
    • float
    • int
    • short
    • java.lang.Boolean
    • java.lang.Byte
    • java.lang.Double
    • java.lang.Float
    • java.lang.Integer
    • java.lang.Short
    • java.lang.String
    • java.SQL.Date
    • java.SQL.Time



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/