.NET
  Home arrow .NET arrow 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


    (Page 1 of 7 )

    Crystal Reports has become a very versatile application for generating reports, particularly if you use Visual Studio. This article will guide you through generating a report using this tool. It takes the wizard approach, and uses copious screen shots to keep you on track.

    Crystal Report

    It is relatively easy to retrieve data from a database and display it using any of the bound controls. This is especially so in ASP.NET 2.0 where the amount of code you need to write has been drastically reduced. However, to present the data in a formal, board-room friendly format and distribute it in hard copy, or for look-up, or both is challenging. Crystal Reports does this remarkably well. Microsoft has been bundling Crystal reports ever since the VB days, and it ships with every version of VS 2005. It is well integrated with Visual Studio 2005 as we shall see shortly. For highly functional and aesthetically pleasing report generation, Crystal Report is ideally suited. It is very versatile and can use data from a variety of databases as well as non-traditional sources.

    Crystal Report comes with its own SDK which can be used to programmatically create reports and interact with them at run time, if one desires do so. Crystal Reports can be us in either Windows or a web application. It can be stand alone or made available over the Internet. These reports can be utilized in many different ways: application embedded reports; reports from web servers; as web services; and so forth. In VS 2005 you find two Crystal Report objects, the CrystalReportViewer and the ReportDocument as shown in the next picture.

    The Object Browser reveals the various classes that are integrated with the Visual Studio application as shown in the next picture.

    The Objective of this tutorial

    The main objective of this tutorial is to give the reader enough guidance in generating a report easily using this tool. This hands-on approach should give enough confidence for the user so that he can experiment himself using this basis. In this tutorial, the report document will retrieve a filtered set of data from the back end SQL 2005 Server using an OLEDB connection. This tutorial uses the wizard approach to report generation as this is the simplest of the methods. There are basically three major steps in report creation, and these are described exhaustively with screen shots that the reader will encounter while creating the report.

    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...
       · Perfect for a beginer like me just what I was looking for
     

    .NET ARTICLES

    - Introducing .NET
    - Building Business Objects for an Application
    - Methods for an Application`s Business Logic ...
    - Properties of an Application`s Business Logi...
    - Classes and Properties in an Application`s B...
    - Organizing Code for the Business Logic Layer...
    - Building the Business Logic Layer
    - Completing a Business Layer with Windows Wor...
    - 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





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