Building Reports Using ASP.NET and Crystal Reports - Part 2 - Quarterly Sales Report
page 9 of 15
by Vince Varallo
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 16493/ 633

Step 8: Create the Chart

The next step is to create a line chart for each Sales Territory. The chart will display a line for each employee, the y axis will be the total sales for the employee, and the x axis will be the fiscal quarter. 

1.    Right click in the white space in the Group Header #1 section.

2.    Select InsertàChart… from the pop-up menu.

3.    The Chart Expert dialog will appear. Change the Chart Type to Line.

4.    There are six different types of line charts. Click the button for the line chart on the bottom left. This will display a line and a marker at the data points.

Figure 10

5.    Click the Data tab.

6.    Change the Place Chart drop down list to Once for each SalesTerritory.Name.

7.    Click on the FiscalQuarter field in the Available Fields list and click the > button to move this field to the On Change Of list box.

8.    Click on the EmployeeName field in the Available Fields list and click the > button to move this field to the On Change Of list box.

9.    Click the SalesOrderHeader.SubTotal field in the Available Fields list and click the > button to move this field to the Show Values list.

Figure 11

10. Click on the Text tab.

11. Uncheck the Auto Text for the Title. Change the Title to Total Sales By Employee.

12. Uncheck the Auto Text for the Group title. Change the Group title to Order Date.

13. Uncheck the Auto Text for the Data title. Change the Data title to Sales.

14. Click the OK button.

The Group Header #1 section will now be divided in two with the chart being in the top part and the cross tab in the bottom. Expand the width of the chart to the width of the page.

Figure 12


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 1 and 2 and type the answer here:

User Comments

Title: Awesome   
Name: Rusty
Date: 8/27/2009 10:36:14 AM
Comment:
Awesome job. I am a brand new CR user and I found your article to be easy to understand, follow, and very helpful. Thanks and keep them coming.
Title: Superb   
Name: ramakrishna
Date: 8/1/2009 6:51:52 AM
Comment:
This article is very good to customise my website,
Title: great work   
Name: Ankit Agarwal
Date: 7/28/2009 12:48:39 AM
Comment:
u have done a great work
this article is really helpful
Title: Great Job   
Name: yin min
Date: 7/26/2009 5:52:54 AM
Comment:
Thanks for your step by step article.
Everyone who is new at crystal are looking for such a simple and very useful article.
Thanks again.
Title: Well Done   
Name: Muhammad Aijaz Rajput
Date: 7/10/2009 10:47:53 AM
Comment:
This is an excellent article. Thanks. I realy need the detailed step-by-step article approach that you take.
Title: Source coming soon   
Name: Vince
Date: 6/22/2009 9:20:19 AM
Comment:
The source should be posted soon.
Title: Excellent   
Name: Walter
Date: 6/16/2009 4:03:31 AM
Comment:
Hi Vince,

another excellent article. Thanks. I really like the detailed step-by-step approach that you take.

Will the source be available as a download?

Regards

Product Spotlight
Product Spotlight 



Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/22/2009 4:52:15 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search