Solved

crystal report at runtime return a calculated sum variable?

Posted on 2013-01-14
7
692 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
  • 4
  • 3
7 Comments
 
LVL 100

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 100

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

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

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 100

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now