This is a migrated thread and some comments may be shown as answers.

Acessinf nested subreport properties.

1 Answer 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 10 Aug 2016, 03:01 PM

Hi,

my hierachy:

--+-> MasterReport
                |
                +-> SubReport 1
                  +-> Textbox 1
                  +-> Textbox 2
                  +-> SubReport 11
                               +-> Textbox 3
                               +-> SubReport 111
                  +-> SubReport 21
                               +-> Textbox 4
                               +-> SubReport 211
                (...)       
In my report construcutor i'm hidding SubReport1 like this:
               

SubReport1.Visible = false ;

But i can't find any way to access SubReport11, SubReport111 or SubReport21 from here.
I have try:
  SubReport1.Items["SubReport11"].Visible = false;
  SubReport1.Report.Items["SubReport11"].Visible = false;

  Cant you please tell me how you would access to the SubReport11 Visible Propertie from the code of MasterReport.

Regards,
Pierre LEBON

1 Answer, 1 is accepted

Sort by
0
Pierre
Top achievements
Rank 1
answered on 11 Aug 2016, 08:50 AM

Fixed!

I had some issue finding my SubReport because i was looking in the "SubReport" and not in the "SubReport" .
A SubReport is the Report Source of a SubReport. the frist on is an other report, the other is a box that can recieve SubReport.

Once you know the difference you can use find() or declare Telerik.Reporting.SubReport as public.
You should use find() because , you never know if the designer code is going to be reset after you add a TextBox.

 

 


Tags
General Discussions
Asked by
Pierre
Top achievements
Rank 1
Answers by
Pierre
Top achievements
Rank 1
Share this question
or