.NET
  Home arrow .NET arrow Page 4 - Using CrystalReportViewer to Display Cryst...
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 
Mobile Linux 
App Generation ROI 
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

Using CrystalReportViewer to Display Crystal Reports in .Net
By: Madhuri Chanda
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2008-10-07

    Table of Contents:
  • Using CrystalReportViewer to Display Crystal Reports in .Net
  • Binding with the Report Source Property
  • Binding with Code
  • Toolbar Functions

  • 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


    Using CrystalReportViewer to Display Crystal Reports in .Net - Toolbar Functions


    (Page 4 of 4 )

    We can manage the functionality of each button programmatically by using the methods associated with it. The buttons on the bar are in the following order, with the listed functionality. 

    • Export Report: This method is used to export the report.

    • Print Report: This method is used to print the report.

    • Refresh: This method lets you refresh the report programmatically. 

    • Toggle Group Tree: This method is used to show the group tree.

    • Go to First Page: Use this method to go to the first page of the report.

    • Go to Previous Page: Use this method to go to the previous page of the report.

    • Go to Next Page: Use this method to go to the next page of the report.

    • Go to Last Page: This method takes you to the last page of the report.

    • Go to Page: This method is used to go to nth page of the report by specifying the desired page number.

    • Close Current View: This closes the current view of the report

    • Find Text: This particular method is widely used programmatically to find particular text in the report and perform required operations.

    • Zoom: This method lets you see the report in a magnified state. 

    We can enable or disable this tool bar by setting the property "Display ToolBar" to True or False. We can also enable or disable each button on the toolbar by setting their individual properties to True or False in the property window. All of these properties can be set programmatically to make our report more dynamic.

    We can enable or disable ToolBar programmatically as follows:


    CrystalReportViewer1.Display ToolBar = False


    We can set other properties in a similar fasion.

    We can also use CrystalReportViewer to display data from other data sources such as XML files, flat text files, and so forth. With the help of Viewer you can even view multiple reports at once with tab reporting. You can refresh current data in the report. You can print a report as well as export a report in various formats such as .PDF, .RTF, Excel, Word and HTML.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    .NET ARTICLES

    - Using CrystalReportViewer to Display Crystal...
    - Creating Summary .Net Crystal Reports
    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - 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

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT