?
Solved

crystal report at runtime return a calculated sum variable?

Posted on 2013-01-14
7
Medium Priority
?
701 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 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 2000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

807 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