Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Reading field values from subreports at runtime

Reading field values from subreports at runtime

Reading field values from subreports at runtime

Hello everybody,
I've been trying to find a quick remedy to my problem with no success.
I'm using VB6EE and RDC8 and have imported client's stand alone report into the app. The report runs fine although it's quite a hog. There are 4 subreports and the main report and there are some shared variables set up.
I need to be able to pick up field values (Crystal Report's FieldObject) from the report (at runtime) and export it to custom Excel Worksheet. I managed to pick up all the fields from the main report, including detail section fields using main report's SectionX_Format event (x = section number).
When I use the same approach for any of the subreports I am able to access the FieldObject in question but it ALWAYS returns "empty" value.

Is it possible to retrieve field (or for that matter text or any other) values from RDC8 subreports as they are being processed (formatted).

Thanks in advance,

RE: Reading field values from subreports at runtime

nedcarnic: The short answer is you can't! The slightly longer answer is that you can only 'see' formula values from a subreport if they have been set up initially in the subreport as shared variables and if you have a 'container' formula in the main report to receive the shared variable

David C. Monks
Accredited Seagate Enterprise Partner

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close