toggle menu
FastReport Forum
FastReport Forum
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Sign In
·
Register
×
Home
›
Fast Reports Products
›
FastReport 3.0
Accessing report components from delphi unit
tecdiscuss
July 2005
edited 3:33PM
in
FastReport 3.0
I want to control visibility of some components such as MasterBand before printing in delphi code. How can I refrence components in report? (Other than OnBeforePrint Event)
Comments
TestFlyJets
July 2005
edited 3:33PM
You can use the FindObject() method, like this, where MyReport is a reference to a TfrxReport object:
var
Band: TfrxBand;
begin
Band := MyReport.FindObject('MasterBand1') as TfrxBand;
end;
All you need is the name of the object.
Chris
Leave a Comment
Paragraph
H2
Toggle Heading Menu
List Unordered
Toggle Heading Menu
Quote
Toggle Heading Menu
Paragraph
Paragraph
H2
Heading 2
H3
Heading 3
H4
Heading 4
H5
Heading 5
List Unordered
Bulleted List
List Ordered
Ordered List
Indent
Indent
Outdent
Outdent
Quote
Quote
Paragraph Code Block
Code Block
Spoiler
Spoiler
Bold
Italic
Strikethrough
Paragraph Code Block
Link
Close
Emoji
Embed
Home
•
FastReport 3.0
Comment As ...
Comments
var
Band: TfrxBand;
begin
Band := MyReport.FindObject('MasterBand1') as TfrxBand;
end;
All you need is the name of the object.
Chris