Addressing appearance properties
-
- Posts: 5
- Joined: Wed Jul 23, 2008 6:11 am
- Location: Germany
Addressing appearance properties
I've just started to work with reports.NET and i'm searching for a way to address the appearance-properties of bands in general out of the mai application.
First i tried to solve the problem via Component Styles (.Styles.), but thechanges don't apply in the viewer - only if i open the designer first, but this is not in my interest.
Thanks for the help.
Alex
First i tried to solve the problem via Component Styles (.Styles.), but thechanges don't apply in the viewer - only if i open the designer first, but this is not in my interest.
Thanks for the help.
Alex
Addressing appearance properties
Hello, Alex.
Please open the 'RuntimeBuildReport' sample report from the trial installation of Stimulsoft Reports.Net.
The same actions can be applied for report template, if you need to change some properties in run-time, then you should assign the Conditions property.
Please let us know if any help is required.
Thank you.
Please open the 'RuntimeBuildReport' sample report from the trial installation of Stimulsoft Reports.Net.
The same actions can be applied for report template, if you need to change some properties in run-time, then you should assign the Conditions property.
Please let us know if any help is required.
Thank you.
-
- Posts: 5
- Joined: Wed Jul 23, 2008 6:11 am
- Location: Germany
Addressing appearance properties
Thank you, Edward.
It was not the hint i expected - but you told me to have a look at the samples and there i found what i needed (Work with Components)
This leads me to my next questions:
I work with the following code-line to change the appearance of a component:
[quote="Code"(VB.NET)] CType(rptTest.Pages(0).Components("bndPageHeader1"), Stimulsoft.Report.Components.StiPageHeaderBand).Border.Color = Color.Blue[/quote]
+ Is it right that i can't adress components like textboxes, that are in a band? How can i adress them?
+ Is there a way to adress the brush.color? With the method above i don't find a property color to brush.
Thanks again. (:
Alex
It was not the hint i expected - but you told me to have a look at the samples and there i found what i needed (Work with Components)
This leads me to my next questions:
I work with the following code-line to change the appearance of a component:
[quote="Code"(VB.NET)] CType(rptTest.Pages(0).Components("bndPageHeader1"), Stimulsoft.Report.Components.StiPageHeaderBand).Border.Color = Color.Blue[/quote]
+ Is it right that i can't adress components like textboxes, that are in a band? How can i adress them?
+ Is there a way to adress the brush.color? With the method above i don't find a property color to brush.
Thanks again. (:
Alex
Addressing appearance properties
Hello Alex,
Thank you.
Please use following code:+ Is it right that i can't adress components like textboxes, that are in a band? How can i adress them?
Code: Select all
Dim text As StiText = CType(rptText.GetComponentByName("Text1"), Stimulsoft.Report.Components.StiText)
Please use following code:+ Is there a way to adress the brush.color? With the method above i don't find a property color to brush.
Code: Select all
text.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(Color.Blue)
Thank you.
-
- Posts: 5
- Joined: Wed Jul 23, 2008 6:11 am
- Location: Germany
Addressing appearance properties
Ok, now everything works.
Thanks a lot,
Alex
Thanks a lot,
Alex
Addressing appearance properties
Please let us know if any help is required.
Thank you.
Thank you.