注册 | 登录
收藏 | 帮助
热门文章
编辑推荐
相关文章  
从Melissa到Zotob:Windows蠕虫1
从后台得到webshell技巧大汇总
Qmail邮件系统下防止滥用mail re
Qmail邮件系统下防止滥用mail re
使用telnet 方式连接Imail的SMTP
MDeamon Server 邮件系统迁移完全
用RelayFax搭建传真服务器
Qmail邮件系统下防止滥用mail re
隐藏qmail的SMTP help信息保护你
Sendmail的relay用法汇总
您现在的位置: 顶尖设计 >> IT学院 >> 编程开发 >> Delphi >> 文章正文
Delphi 7 中使用RAVE报表(四)
作者:highway_programmer  来源:csdn  点击:  更新:2006-12-19
简介:
 

Delphi 7 中使用RAVE报表(四)

                                                                                                                             ——利用程序设计一张报表



   上一篇向大家介绍了建立一张简单报表的过程。这篇文章向大家介绍rave报表代码编程实例。窗体上放置组件:RvSystem, Button即可。

具体代码如下:
##################################################################################

unit Unit1;

interface

uses

  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

  Dialogs, StdCtrls, RpDefine, RpBase, RpSystem;

type

  TForm1 = class(TForm)

    RvSystem1: TRvSystem;

    Button1: TButton;

    procedure RvSystem1Print(Sender: TObject);

    procedure Button1Click(Sender: TObject);

  private

    { Private declarations }

  public

    { Public declarations }

  end;

var

  Form1: TForm1;

implementation

{$R *.dfm}

 

procedure TForm1.RvSystem1Print(Sender: TObject);

var

  I1: integer;

  S1: string[20];

  S2: string[20];

  Bitmap: TBitmap;

  PolyLineArr: array[1..6] of TPoint;

begin

  with Sender as TBaseReport do begin

  { 打印表头和表尾 }

 

    SectionTop := 0.75; //顶端

    SetFont('黑体',26); //设置字体

    Underline := true; //下划线

    Home;

    YPos := 1.0;

    FontRotation :=20;//旋转角度

    PrintCenter('我的报表',PageWidth / 2);

    SetFont('宋体',10);

    SectionBottom := 10.75;

    PrintFooter('第' + IntToStr(CurrentPage) + '页',pjLeft); //页码

    PrintFooter('日期: '+DateToStr(Date)+' ',pjRight); //日期

    SectionBottom := 10.5;

    YPos := 1.5;

    SetFont('宋体',12);

    SetTopOfPage;

[1] [2] [3] [4] 下一页






  • 上一篇文章:
  • 下一篇文章:
  • 分享此文:该页面添加到 Mister Wong 添加到雅虎Yahoo!收藏 Add to:Del.icio.us Post to Furl Digg this 添加到Google书签 reddit spurl blogmarks 365Key 评论  收藏  分享  打印
     我来说两句
    姓名:       验证码:   
    主页: 
    评分: 1分 2分 3分 4分 5分
    本频道近期热评文章:
      关于我们 | 联系我们 | 站点地图 | 广告投放 | 友情链接 | 在线留言 | 版权申明
    版权所有 © 2004-2007 顶尖设计(bobd.cn)
    未经授权禁止转载,摘编,复制本站内容或建立镜像. 沪ICP备07504942号 
    网络110
    报警服务