Solved

VISUAL BASIC .NET and DYNAMIC CRYSTAL REPORTS

Posted on 2008-10-09
9
151 Views
Last Modified: 2013-11-26
I have created a CRYSTAL REPORT that runs from a VISUAL BASIC console apllication. The report has a pie chart in it that displays how many merchants sell a producers wine in five different countries. It works perfetly. Now there has been a new twist added to the report. The producers are now given the choice of choosing from 1 to 5 different countries.  Is there a way to programmatically change the fields displayed in the pie chart or will I have to create five different reports for each of the five possiblle pie charts?
0
Comment
Question by:acsakany
  • 5
  • 4
9 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 22679019
Is this when you run the report?
They choose 5 countries as a parameter?
If so simply add a filter through the select expert like
{YourCountryField} IN {?CountryParameter}

mlmcc
0
 

Author Comment

by:acsakany
ID: 22679096
The countries are chosen and then the report is run. The problem being that there used to always be be only 5 countries. So the pie chart ws setup to display five SHOW VALUES. Now the pie chart needs to be dynamic. There can now be one to 5 SHOW VALUES.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22679418
How is the pie chart setup?

It should be simply based on 2 fields
Country
Sum(SalesField)

mlmcc
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:acsakany
ID: 22679491
The report used to be

WINE: Chateau Haut Simard
---------------------------------

COUNTRY              MERCHANTS
------------              ----------------
France                        30
United States              20
Italy                             20
Germany                     20
Canada                       10

This data would be displayed in a pie chart. Now they can choose 1 to 5 of these countries so I need to dynamically create a pie chart. Is it possible? Is the a CRYSTAL REPORTS SDK?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22679863
You should be able to build the pie chart as

Insert a chart
Right Click the chart
Click CHART EXPERT
Click the DATA tab
Click the ADVANCED button
On Change of - Country
Show Values - Merchants (either sum or count)

mlmcc
0
 

Author Comment

by:acsakany
ID: 22679900
yes I understand the concept of adding SHOW VALUES. The problem being that the number of SHOW VALUES will change depending on how many the user chooses. Is there a way to dynnamically change the number of SHOW VALUES?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22679975
What does the database look like?
Apparently it is not just

Country  Merchant

mlmcc
0
 

Accepted Solution

by:
acsakany earned 0 total points
ID: 22679998
I just got a phone call. Plans cancelled. Five countries only.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22680022
What are the chances they will again change thier minds?

mlmcc
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 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