• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

QuickReport's problem

I had wrote a form.The following is it's code:
//=================================================
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, QuickRpt, ExtCtrls;

type
  TForm1 = class(TForm)
    QuickRep1: TQuickRep;
    QRBand1: TQRBand;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
  Qrband1.BandType:=rbTitle;
end;

end.
//=================================================

error message appear when compile:
Undeclared identifier:'rbTitle'.
I don't know why????????
0
firstshine
Asked:
firstshine
1 Solution
 
rondiCommented:
Sure it's not btTitle ?
0
 
kretzschmarCommented:
you may miss a unit in your uses-clause,
didn't know which yet
0
 
sundayboysCommented:
i test it,because u miss QuickRpt.pas!
0
 
kretzschmarCommented:
QuickRpt is in the uses clause,
i mean another one, where the enumeration types are declared
0
 
mmphadkeCommented:
Include QrPrntr unit in uses clause because TQRBandType is defined in this unit.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now