.NET
  Home arrow .NET arrow Page 5 - Generating a Simple Crystal Report using V...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Generating a Simple Crystal Report using VS 2005
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 33
    2006-11-01

    Table of Contents:
  • Generating a Simple Crystal Report using VS 2005
  • Creating a Crystal Report Project
  • Report Generation
  • Creating a DataLink file
  • Selecting the Data
  • Choosing a Style for the Report
  • Displaying the Report

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Generating a Simple Crystal Report using VS 2005 - Selecting the Data


    (Page 5 of 7 )

    When you click on the Finish button in the above screen, you enter the next step of the report creation wizard. You will be choosing the source of the data on the server you logged on. Here the Northwind database will be used. You may access any of the objects; that includes some of the system objects as well.

    Selecting a table(s) from the database

    We will be using one of the tables on this database, in particular, the Employees table. Expand the Table node, highlight the Employees table, and click on the button marked ">". This will take the Employees table to the Selected Tables: area as shown. Instead of a single table, multiple tables can also be used.

    Selecting Columns (Fields) from the table

    A table can have a large number of columns, also called Fields. In a report, depending on the requirement, one may or may not need all the columns. In this case, out of all the available fields only a subset is chosen to be displayed. Transfer all these fields to be displayed from left pane to right pane by clicking one-by-one, or highlighting them as a bunch and using the ">" button. By using the Up/Down arrows in the Fields to Display pane, they can be reordered top to bottom.

    Grouping the data

    When you click on the Next button, you will be taken to the Grouping area. The Employees may come from different cities and in this case they can be grouped on the basis of the city they come from. In this screen you would choose the Employees. City and click on the ">" button to transfer it to the Group By: column. In the background, the wizard is creating an appropriate SQL Select statement.

    Summarizing the data

    When you click on the Next button, you will bring up the window shown where you may summarize the data. The data fields we have chosen do not require summarizing, therefore you go the next task by clicking the Next button on the following screen.

    Selecting only required fields

    Although this section is optional you may still want to make a change to the record selection. For example FirstName was not chosen in the initial selection, but here it was added.

    More .NET Articles
    More By Jayaram Krishnaswamy


       · Clean, pleasing reports can be generated quite easily and fast. But if you use the...
       · I can't get this working. Maybe why you have received no comments?Also there is...
       · There could be more than one reason for this. You may have certain problems with...
     

    .NET ARTICLES

    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek