Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 2 - Creating Reports with Delphi and ADO
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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? 
DELPHI-KYLIX

Creating Reports with Delphi and ADO
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 9
    2006-10-16

    Table of Contents:
  • Creating Reports with Delphi and ADO
  • ADO with Rave Reports
  • Building the application
  • Defining the Layout

  • 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


    Creating Reports with Delphi and ADO - ADO with Rave Reports


    (Page 2 of 4 )

    There are two easy ways to create reports in Delphi:

    • Code based method

    This method allows us to build a report through code. This includes creating the formatting of the text, as well as setting the position of the text. It is arguably the best way to create a real world application as it gives the developer a lot of latitude in terms of the way the application functions. To run, or preview, a report that we create, we are going to use a component from the Rave tab called RvSystem.

    • Visual Designer method

    To use this method, you need to start the Visual Designer application and physically build the layout of the report. It is considerably easier to use this method, because you do not need to code as much and text formatting is automated. To link the report to the application, you need to use a component called RvProject.

    In this article we are primarily going to discuss the code-based method since it includes, by no means exclusively, database-related reporting. You can also display simple text on a report without involving a database. To display simple text on a code-generated report you simply write the following in code:

    withSender as TBaseReport do
      begin
        SetFont('Arial', 10);//set the font / font size
        GotoXY(1,1);//set the location of the text
        Print('Delphiand Code Based Reporting in Rave');//show the //text
      end;
     

    which produces this:

    More Delphi-Kylix Articles
    More By Jacques Noah


       · I hope you found my article educational; I welcome your comments.
       · Hi!.I'm have programe writeln by kylix 3.0, beacause i want to printing some field...
       · Delphi 8 and higher now comes with a new reporting component called Crystal reports....
     

    DELPHI-KYLIX ARTICLES

    - Loading an XML Document into the DOM
    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...







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