Crystal Reports Tools: Improve Performance While Saving Time and Money

cView Tool: Share UFL

  Resources  
Best sellers:
cView
Report Analyzer
cViewSERVER
ReCrystallize

Crystal Reports: Free trial

Articles:
Administration
Advanced
Basic
Crystal eNL
Database

Financial
Problems Solved

Books:
CR Books

Database Books
Developer Books
Tools:
All CR Tools
CR Analyzers
CR Bestsellers
DataBase Tools
CR Graphics
International
CR Mail UFLs
ReCrystallizePro
CR Schedulers
CR UFLs
CR Viewers

Add'l:
About us

Contact Us
cViewSUITE Ppt
Support

Crystal Reports
on Steroids

The Share User Function Library is a Crystal Reports User Function Library that lets you save and retrieve data between reports.

Share UFL for Crystal Reports

How often have you wanted to take a value from one report and use it in a second report? Now you can.
  • Use the ShareTagSave function in one report to save the data in a "Share File".
  • Then in another report use the ShareTagFetch to use that value in your new report.

A share file is a simple xml file, and you can use this document format with other applications including InfoPath, SQL Server, or even a text editor.

The trial version has a limit of 10 values per share file. The full version currently has a limit of 1000 values, but this can be increased if you want more.

Pricing | Buy Now

Share data values between Crystal Reports with Share UFL

We have received requests in the past asking how to use value from one report in a second report. The usual answer is to repeat the database processing in a subreport inside the second report. This is highly inefficient of course, and hits major limitations if there are values needed from more than one report in a later report.

Another solution to this is to calculate the totals in some summary tables, and use them there. That's fine if SQL functions will do what you want, but the values could be more complex than some simple SQL functions.

In the past, we made this possible via using our Disk Output and Text Lookup User Function Libraries: write the values to a disk file using the DiskLinesEntry function, and retrieve it with the TextLookupCell function.

We decided to combine these into an easy-to-use User Function Library that you can access under “Functions” in your Formula Explorer.

This new UFL is called the Share UFL. You create a Share file and a tag for the value you want to save with the ShareTagStore function:

WhilePrintingRecords; ShareTagStore(“c:\Reports\Data\Finance.xml”,
”Balance”, ToText(Sum({Table.Amount}));

Retrieve the value in another report with:

WhilePrintingRecords;
ShareTagFetch(“c:\Reports\Data\Finance.xml”,”Balance”)

You can use multiple Share files in one report, and in the full version up to 1000 different tags for the values you want to save. A Share file is a simple XML document, so you could use this with a Web service, another application, some SQL, or even a text editor.

 

These keywords may have brought you here: share data between reports, crystal reports, export data, exchange data, transfer data