.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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 / 26
    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
     
    Iron Speed
     
    ADVERTISEMENT

    Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!

    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...
     

    .NET ARTICLES

    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries
    - Introducing LINQ to SQL Designer using Visua...
    - Beginning LINQ to SQL Using Visual Studio 20...
    - Coding an AjaxPro.NET Based Search Engine fo...
    - Building an AjaxPro.NET Based Search Engine ...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway