crystal report at runtime return a calculated sum variable?

Posted on 2013-01-14
Last Modified: 2013-01-14
Hi Experts-

I am wondering if this is possible?

I create a CR and export it to PDF using the below code.
After execution, can I retrieve a sum Variable from my Crystal report and send it back to a variable in WFC ?

 CrExportOptions = report.ExportOptions
                With CrExportOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.PortableDocFormat
                    .DestinationOptions = CrDiskFileDestinationOptions
                    .FormatOptions = CrFormatTypeOptions
                End With
Question by:BKennedy2008
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 101

Expert Comment

ID: 38775060
What version of Crystal?


Author Comment

ID: 38775127
It's the latest Crystal reports for VS 2010
LVL 101

Accepted Solution

mlmcc earned 500 total points
ID: 38775332
I don't believe the .Net versions allow that.

If they do I don't know what the method is.

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.


Author Comment

ID: 38775504
Everything is passing parameters to crystal, not crystal to .net
LVL 101

Expert Comment

ID: 38775569
Understood.  Crystal has full versions and versions built for use with Visual Studio.  The VS versions are referred to as .Net versions.

The full versions used to provide access to report objects though I don't know if you could get formula values.  The .Net versions were more limited and I don't believe they provide access to what you want.


Author Comment

ID: 38775571
That was too easy....Ran a Query that summed up the total field prior to executing the CR, and voila, now I have the amount in a variable...
LVL 101

Expert Comment

ID: 38775937
Good workaround.

So long as the filtering is the same the value should be correct


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor ( Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question