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

Down

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];

Top









Memory: 0.56 MB
Time: 0.022 c
1-22102
Andrey196
2001-12-19 18:43
2002.01.08
Why people Image does not want to show TIF images


3-21982
Dush
2001-12-06 12:37
2002.01.08
Client connection to the database


3-21973
Zav
2001-12-06 10:55
2002.01.08
DBNavigator component


14-22326
Mcsimm
2001-11-04 11:35
2002.01.08
Someone wanted to stretch their brains? What are the options for the algorithm?


14-22370
Zergg
2001-11-08 16:30
2002.01.08
About static DLL loading from CBuilder





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 Español 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
zulu
English French German Italian Portuguese Russian Spanish