.NET
  Home arrow .NET arrow Page 4 - 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 - Creating a DataLink file


    (Page 4 of 7 )

    The Microsoft DataLink utility can be used to create a DataLink file with the *.udl extension. If you create a new text document and change its extension from *.txt to *udl, a DataLink file will be created. This can be configured by double clicking the icon of the file. This opens the DataLink Properties window as shown with the Connection tab in the default view. Click on the Provider tab, and then scroll up or down until you locate the SQL Native Client. Highlight the SQL Native Client and click Next, or change to the Connection tab.

    The data source is the SQL 2005 Server which in this case is Hodentek/Mysorian where Hodentek is the Windows XP machine and Mysorian is the SQL 2005 Server instance. The logon information is what is appropriate for the SA user. You may save the password with the connection. If the information up to this point is correct, you will be able to access all the databases on this server as shown in the drop-down box. For this report the Northwind database will be used. The reader will benefit from the earlier SQL 2005 articles on the ASPFree.com site. At this point you can also verify that the connection is correct by clicking the test button.

    Make sure that after this task you go back to the OleDB Provider screen and browse and locate this file.

    Connecting to the Data Server

    After locating the file, click on the Finish button. This brings up the next screen where you make the connection by providing the authentication information.

     

    Do you want to change something?

    When you click on the Next button, the OLEDB(AD0) screen presents some advanced information. You could "Edit" or "Remove the Property" altogether. For this tutorial the default is accepted.

    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 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek