Skip to Content
avatar image
Former Member

Get values from another report document

Hi all,

I had a report that performs many calculations while loading.

It's simple to perform the calculation on the report rather doing it with code.

Now i wanted to use the some results in another crystal report document for further calculation. Can I achieve that?

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 31, 2014 at 08:56 AM

    Hi Nebil,

    You cannot share values from another report that is 'outside' the existing report. You can only share values between a Main Report and a Subreport.

    You can insert the other report as a Subreport and use 'shared variables' to pass back values to the Main Report or vice-versa.

    -Abhilash

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 31, 2014 at 09:55 AM

    Hi Nebil,

    If the data to passed from one report to the other is not much, you can try using Memory Variables to pass it on.

    For that, you need to SET the memory variable in called report and GET the memory variable in the calling program.

    You may try using this approach.

    Thanks,

    Gayatri

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 31, 2014 at 04:16 PM

    You can create/use a User Function Library (see list of 3rd-party UFL's at http://kenhamady.com/bookmarks.html) to write/read values to/from text file, ini file, or the registry.

    You can export the report data to a file for use as a data source by another report. If performance/automation is important, one of the 3rd-party desktop crystal reports schedulers listed at http://kenhamady.com/bookmarks.html can export to ODBC and replace (or append to) the data in an existing table.

    If this is something you do infrequently you can simply manually delete the table, export to it via ODBC (in Crystal) using the 1st report, and use the table in the 2nd report.

    Add comment
    10|10000 characters needed characters exceeded