|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Text File Lookup via a User Function LibraryThe domain description lookup formula we developed in an example in another article was several hundred lines in length. Some domains might not be in the list now, but they could be in future data. If we need this formula in multiple reports, the
entire list needs to be copied into every formula in every report.
The domain descriptions don’t change very often, but what if you
had a description list you needed that did require frequent revision?
Ideally, these things should be in your database--but sometimes, this
isn’t possible. We’ve developed a User Function Library that can
open and search through a text file for a line and retrieve a value from
that file. It is very useful
if you have a CSV or Tab separated file, because the library includes functions
that extract an individual column from a row of data. The complex and lengthy formula statement in the previous example is reduced to a simple text file lookup with
TextLookupColumn ("domain.txt",{@TLD}, 1) Try the free trial of this text file lookup function. With this ULF, you can search texts and return individual lines or columns. Our Text Lookup User Function Library is a set of seven functions that enable you to search through a text file and extract lines and columns to display in your report. It allows you to search text documents and return individual lines or columns. Free 30-day trial. The Text Lookup User Function Library is a set of seven
functions enables you to search through a text file and extract lines and
columns to display in your report. It allows you to search text documents and
return individual lines or columns.
This UFL supports multiple text files. This User Function Library installs seven new functions in the Additional Functions list inside Crystal Reports.
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. |