Archive for the 'Method' Category



Finding a stray formula or parameter field

Wednesday 27 June 2007 @ 10:16 am

Crystal will not allow you to delete a formula or parameter field from a report unless that item is no longer used anywhere in the report. Unfortunately, there are several hundred places where a formula could be hidden. These include sorting, grouping, selecting, totaling and dozens of formatting formulas for every report object. Checking all of these hiding places is not practical, so here are two ways to have Crystal help you uncover where the field is being used.

My favorite method is to edit the formula or parameter in question and change it’s data type. Continue Reading »
Finding a stray formula or parameter field




Expanding the design area in Crystal Reports

Wednesday 9 May 2007 @ 1:17 pm

The width of the design screen in Crystal Reports is taken from your default printer settings; including the paper size and orientation. These settings can be changed using the menu options “File - Printer Setup”?. The maximum width for most printers is about 13.5 inches, achieved by using legal size paper in landscape orientation.

But some reports are never sent to a printer. They are only exported or previewed to the screen. This can be frustrating because even these reports are limited to the width of that specific printer.

If you need a wider design area for an exported report, you need a to setup a printer driver that supports wider paper sizes Continue Reading »
Expanding the design area in Crystal Reports




Using “Table Inflation” to your Advantage

Tuesday 8 May 2007 @ 3:16 pm

I am working on a Crystal Reports project where I have to print multiple packing slips for one report record. The number of packing slips is determined by the quantity field in each record. One way is to do this is to create a fixed number of separate subsections, each holding one copy of the packing slip. You could then conditionally suppress some of the copies based on the quantity needed. This technique works well in some environments but has 2 weaknesses: Continue Reading »
Using “Table Inflation” to your Advantage




Installing CR7 on Windows Vista

Monday 9 April 2007 @ 9:41 am

I had a reader ask me about installing Crystal Reports version 7 on Windows Vista. It seems that the CR7 install crashes mid way through. Since I have avoided Vista so far so I didn’t have much advice to offer. Well he later told me that he got it to work by installing up to the point of the crash and then copying the rest of the files into the program folder. A week later he says that it seem to run fine. I am not sure I would recommend this combination or method, but I rarely argue with something that works. If anyone has a different experience or other problems with CR/Vista let me know.




Can Hierarchical Grouping create a Bill of Materials (BOM)?

Thursday 22 March 2007 @ 4:00 pm

I am often asked about how to create a Crystal Report that generates a “Bill of Materials” or BOM. A Bill of Materials is the list of parts required for a job or order. The challenge comes when the some of the parts are actually assemblies or ‘kits’, which are made up of other parts but sold under a single part number.

When a BOM includes an assembly item, it should show all of the components needed to make that assembly. In some cases the assembly is made up of individual components but it is also possible that an assembly is made up of another smaller assembly - which may also be made up of another even smaller assembly. Customer describe their BOM requirements as having to go down 5, 10 or even more levels to get to the individual parts. The question is how do you do this in Crystal?

Some people think they can solve this with the “hierarchical grouping” (HG) feature of Crystal Reports. Continue Reading »
Can Hierarchical Grouping create a Bill of Materials (BOM)?




Calculating Fiscal YTD

Wednesday 17 January 2007 @ 4:52 pm

Assume you have a series of dated transactions. Crystal allows you to use custom functions for things like Month to Date, Year to Date, etc. However these are always based on calendar periods. Month to Date is Calendar month. Year to Date is based on a calendar year, etc. Here is a method that you can use if your business year is a non-calendar or fiscal year. Continue Reading »
Calculating Fiscal YTD




The Stealth Subreport

Wednesday 25 October 2006 @ 2:35 pm

Often subreports are used in Crystal Reports to retrieve an unrelated value from a different table or data source. In many of these cases you do not want to see the subreport at all. You just want to retrieve your value and use it. You soon realize, however, that if you suppress the subreport object, or if you suppress the section that contains the subreport, the subreport will simply not run.

To make a subreport run but be completely invisible you suppress Continue Reading »
The Stealth Subreport




Percentages in Cross-tabs that do not round correctly

Thursday 21 September 2006 @ 10:11 pm

A former student was having trouble adding decimals to the cells of his cross-tab and asked me why. After doing some research I found a problem that I had not noticed before. Cross-tab summaries of Count and DistinctCount that do percentage of total calculations are always truncated to an integer (not rounded). This means that they will not total correctly Continue Reading »
Percentages in Cross-tabs that do not round correctly




A line that grows automatically

Monday 28 August 2006 @ 9:30 am

I had to create an “Income Trend” report this weekend with 12 columns, one for each month of the year. The user inputs the current month and the report prints the columns for January through the selected month. When they enter 8 for August, the report is designed to only show 8 columns, January through August. Since I had to create all 12 columns I gave each column a suppress condition that hides that column when it is a future month.

Then I hit a problem. There were a half dozen horizontal lines going across the entire width of the report. Once I started suppressing later months I noticed how ugly it looked to have a few visible columns but a line that stretched out to the invisible 12th column. I also realized that there isn’t a way in Crystal to have a line grow, shrink or suppress based on a condition. I tried a few solutions before I came up with a relatively simple way Continue Reading »
A line that grows automatically