|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Display StringCrystal Reports v9.0 has an interesting option for field formatting. You can change the way your report data are displayed in your report by using the “Display String” format property. You will find it at the bottom of the “Common” tab under format field. The display string can be any calculation you like, but it must return a string or text value. Use it for a weather report to say (The above temperatures are in Celsius and refer to Auckland,
NZ conditions. Use your own temperature scale and descriptions in your local report) We have an interesting application of this in a
crosstab suggestion. Use a variables to interrogate data during the processing of the crosstab. Ken Hamady found an interesting way to calculate additional totals while processing a crosstab. Ken describes in his newsletter how to use the conditional formatting functions of cells to reset and load variables inside a crosstab. Ken describes in detail how to use the cell formatting with variables. Check out his newsletter at http://www.kenhamady.com Luqman from Pakistan takes technique a step further to calculate ratios of summaries inside a crosstab. His crosstab has three summary fields, a Quantity total, a Sales total, and the third displays the average selling price.
Luqman uses the Display String conditional formatting to store the Sales total in a formula with All this formula does is store the CurrentFieldValue in a global variable MyValue, and then display the summary. The ToText function is needed because the Display String property has to be a string value.
Then in the third summary is the Quantity summary again, but he uses the previously saved variable to calculate the ratio of the Sales/Quantity with These two techniques display the real power of the crosstab objects. And what about that formatting we mentioned, earlier? Formatting enhances the usability of your Crystal Reports. For even more functionality, you can use third-party programs, such as the ones available here. All that said, here's a caution. Don't get carried away with formatting. A report is not the place to demonstrate how many formatting techniques you can use.Instead, you want to use the formatting to accomplish such goals as:
Avoid common color usage errors
This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd. It may be freely copied and distributed as long as the original copyright is displayed and no modifications are made to this material. Extracts are permitted. The names Crystal Reports and Seagate Info are trademarks owned by Business Objects. |