Improve company productivity with a Business Account.Sign Up

x
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

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