Solved

crystal report at runtime return a calculated sum variable?

Posted on 2013-01-14
7
698 Views
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
                report.Export()
0
Comment
Question by:BKennedy2008
[X]
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
7 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 38775060
What version of Crystal?

mlmcc
0
 

Author Comment

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

Accepted Solution

by:
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.

mlmcc
0
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

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

Expert Comment

by:mlmcc
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.

mlmcc
0
 

Author Comment

by:BKennedy2008
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...
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 38775937
Good workaround.

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

mlmcc
0

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 vb.net 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 (https://www.adremsoft.com/). 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