PDA

Click to See Complete Forum and Search --> : How To Call Functions From Different Reports? - Crystal Reports Version 9


MethadoneBoy
Jan 18th, 2008, 04:34 AM
Hi all,

I'm something of a newcomer to Crystal Reports so apologies if any of the questions I ask are newbie-ish. I've taken a look on-line for a solution to the problem but have been unsuccessful; hoping someone here can help.

My company have a number of Crystal Reports (Version 9) that use information linked from an external database. All of the reports contain the same formula (or same group of formulae) for carrying out calculations based on this data. These formulae are subject to a good deal of updates which means that whenever a change needs to be made to a formula, that change needs to be implemented in every single report which is obviously time consuming and prone to errors.

From my VBA background, I know that it's possible to call a function in an external MS Access database from within a database which eliminates the need for constantly copying modules across a number of databases. I'm looking to see if there's a similar way to do this in Crystal Reports. That is; is there any formula/function/module that I can write in a Crystal Report that can be called/referenced by other Crystal Reports on the same network?

Any help with this would be appreciated

Thanks

brucevde
Jan 18th, 2008, 12:45 PM
Which Edition of Crystal do you have?

You can create a User Function Library (UFL) using VB, C or Delphi. The public functions within the library appear in Crystal's Formula Editor. All the information you need to create the UFL is in the Developer's help file (probably available on-line if you don't have a Developer Edition of Crystal).