|
Solve problems with this UFL. Here's an example. A user posed the following problem:
Our Crystal Reports require Users to provide their USERID as a parameter for record selection. We would like to eliminate the requirement to enter the USERID from our reports by:
Will your Registry User Function Library help with this? Solution:
Yes, this can be done provided you use a subreport. The reason is that User Function Libraries (UFLs) are invoked once the report is processing data. Therefore, while we could retrieve the information you want in the Registry, it would be too late to use for the DB parameter in the main report.
The exception to this is if the parameter is requested in a subreport, as the main report will have processed the UFL prior to running the subreport.
Tip: Remember to ensure you retrieve at least one record in your main report (or else the subreport will not run). |
|
Registry Functions:
-
GetRegCurrentUser(Key, Prop)
-
GetRegLocalMachine(Key, Prop)
These functions will retrieve a value
from the CurrentUser and LocalMachine hives of the Windows registry. If
the Key or property is not valid the function will return a blank value.
Random Functions:
-
GetRegRandomSeed(Seed)
-
GetRegRandom
Crystal reports 8 added a random
function to the formula editor, so these functions are here for users of
earlier versions of Crystal Reports. The GetRegRandom should be
calcualred WhileReadingRecords to get individual values for each record.
Disk Volume Functions:
These will retrieve the Serial number
and volume label of the specified drive. GetVolInstallPath will retrieve
where the User function library has been installed (Usually
\Windows\Crystal or \WinNT\Crystal).
Alert Function:
This will stop your report, and
display a message (with the required caption) and then continue
processing the report. If you accidentally specify a condition where an
excessive number of alerts have been raised, you can cancel the
messages.
Size Functions
These functions convert a number into
the appropriate formats and display the required units of measure. |
|
These keywords may have brought you here: Registry Function Library for Crystal Reports, crystal reports registry functions, crystal reports solutions, crystal reports tools, crystal reports registry ufl, crystal reports software, crystal reports add-ons, crystal reports downloads, crystal software, crystal downloads, crystal reports problems, crystal reports developers, crystal reports designers, crystal reports utilities, crystal reports help, crystal reports modules, crystal reports scripts, crystal reports management tools, crystal reports management software, crystal reports management utilities, crystal reports function libraries, retrieve values from user registry keys |