Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];


FastReport. frBand.Visible Find similar branches

asafr   (2001-12-04 18:11) [0]

There is a Detail-Detail report in FastReport. Each DetailBend (DetailBend1, DetailBend2) is associated with a different DataSet (DataSet1, DataSet2). There are also two HeaderDetail (HeaderDetail1, HeaderDetail2 - respectively). It is necessary that when CheckBox.Checked: = True / False, the second part of the report is printed / not printed on the Delphi form in the report (DataSet2). I can do nothing - in my opinion everything is correct, but the code does not work: Bands is always visible when Visible = True. What's wrong? What do not take into account?
procedure Tfm_Form1.frReport1BeforePrint (Memo: TStringList; View: TfrView); var DetHeader, DetData: TfrBandView; begin DetHeader: = TfrBandView (frElectroGroup.FindObjec ("DetHeader1")); DetData: = TfrBandView (frElectroGroup.FindObject ("DetData1")); if CheckBox.Checked = True then begin if DetHeader <> nil then DetHeader.Visible: = True; if DetData <> nil then DetData.Visible: = True; end else begin if DetHeader <> nil then DetHeader.Visible: = False; if DetData <> nil then DetData.Visible: = False; end; end;

Girl   (2001-12-05 01:11) [1]

Hang on an OnGetValue event handler. Not Visible, but ShowBand

Girl   (2001-12-05 01:13) [2]

those. sorry, at first it was necessary to read completely. :)
No need to hang anything on OnGetValue. Just use ShowBand instead of Visible.

asafr   (2001-12-05 12:14) [3]

Girl, thanks. But I Undeclared identifier "ShowBand". And I do not want to change anything in the source. AT FR_Class.pas procedure ShowBand is registered as private. What do you do in this case?

Pages: 1 whole branch

Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];


Memory: 0.55 MB
Time: 0.024 c
Plug & play
2001-10-29 22:23
And how to programmatically turn off the computer?

2001-11-08 07:51
> Merilin

2001-09-23 18:24
Onclick event for programmatically created kompanenta

2001-12-18 19:18
Deleting an object

2001-09-27 07:14
How to copy yourself if the program is running

afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic Indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish Thai turkish Ukrainian urdu Vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
English French German Italian Portuguese Russian Spanish