Formatting Crystal Reports
The information explained in this topic assumes that Crystal Report users have received intermediate level training from Business Objects and/or previous experience in developing Crystal reports.
- Determine the data items, views, record restrictions, grouping/sorting, and layout needed to create your report. Refer to the “Viewpoint View Columns” and “Views and Reports by View Type DrillDown” reports.
- Determine the lay out of the report – headings, columns, margins, fonts, etc.
- Determine if copying and modifying an existing report will accomplish your reporting need. Look for reports that use the same views, or at least contain views that will link efficiently to any new views needed for your report.
- Review the predefined templates located in the Templates subfolder of your Viewpoint\Reports folder. They use special report views (beginning with "brv") that can be of help when encountering the following situations:
Your report requires two detail views
Table linking results in “many-to-many” relationships.
- Add and link necessary views to the report by using the ODBC connection in the Crystal Database Expert.
- Add parameter fields. If not using a predefined template, add defaults for each parameter. Following are some standard guidelines:
Numeric Beginning Parameters – 0
Numeric Ending Parameters – 99999… (number of 9’s should equal the length of the database field to be selected in step 7)
String Beginning Parameters – “ “ (space)
String Ending Parameters – zzzzzz… (number of “z” characters should equal the length of the database field to be selected in step 7)
- Note: Crystal reports display dates based on the Report Date Format in HQ Company Setup, but do not accept any date parameters other than the United States format. When creating custom, or modifying, reports for companies outside the US, you must ensure that the "ReportDateFormat" parameter is set to convert the date format to US for the report to recognize the date and then convert it.
- Use the parameters in the Select Expert to filter data for your report. In other words, select database fields to restrict records based on the input parameters entered at the time the report is run.
- Add sort/group fields to detail section. This makes it easy to find the fields for adding your group levels in step 10.
- Add amount fields to detail section.
- Insert Group levels to summarize the data from the main or detail table used in the report. Because detail views seldom are summarized at the level needed for the report, you will almost always need to insert at least a couple of groups.
- Insert summaries/subtotals in your group levels.
- Add report to appropriate Report menu. See Adding Reports to Module Menus.