|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Pad a String to an Exact LengthCharliy Nash has sent us a very handy collection of useful Custom Functions and we will share them with you in various articles. Here, we show you his function to pad a string to an exact length. This is useful if you need to export the report to text format. If the string is longer than StrLength, it will be truncated. Function PadExact - Used to format fields to a specific length
And don't forget about User Function Libraries. What is a User Function Library (UFL)? Essentially, it's a piece of code that plugs into Crystal Reports to expand its functionality. Most people do not need every UFL available. But, nearly everyone needs at least one or two UFLs. What does it take to write a good UFL? Here are some of the requirements:
Now, don't worry if you don't have all of requisite skills and resources. We have all of these and more, and thus they can fill the void for you (see below). But where does a UFL go?User Function Libraries are used inside a formula to add calculations that are not otherwise available. They show up as Functions in your Formula Editor and extra functions are usually displayed under Additional Functions. We have developed some interesting functions, and there are some others available from Business Objects and other 3rd party developers. User Function Libraries first appeared in Crystal Reports 5, and were a DLL that was installed in the Windows\Crystal folder. This folder continues to work for all subsequent versions of Crystal Reports. You can also install them in the Crystal Program folder. This varies from version to version since version 9.0. Crystal Reports 2008 installs into C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 Some great UFLsBelow is a listing of some great UFLs. Click the link or associated image for pricing and information on each one. Intrigued? Here's some info on the
GRID UFL. Export structured data to Excel or another application, the
smart way. Grid UFL provides you the proper control of your Crystal Reports
Export. The ability to export your reports to another application or format is
one of the really useful features of Crystal Reports. But when you do this, you
run into the limitations of both Crystal Reports and the other application. Grid
UFL helps you overcome those limitations.
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. |