Page 1 of 1

Addressing appearance properties

Posted: Wed Jul 23, 2008 7:22 am
by api_itelio
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

Addressing appearance properties

Posted: Wed Jul 23, 2008 10:38 am
by Edward
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.

Addressing appearance properties

Posted: Thu Jul 24, 2008 8:06 am
by api_itelio
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

Addressing appearance properties

Posted: Thu Jul 24, 2008 11:23 am
by Vital
Hello Alex,
+ Is it right that i can't adress components like textboxes, that are in a band? How can i adress them?
Please use following code:

Code: Select all

Dim text As StiText = CType(rptText.GetComponentByName("Text1"), Stimulsoft.Report.Components.StiText)
+ Is there a way to adress the brush.color? With the method above i don't find a property color to brush.
Please use following code:

Code: Select all

text.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(Color.Blue)

Thank you.

Addressing appearance properties

Posted: Tue Jul 29, 2008 2:08 am
by api_itelio
Ok, now everything works.

Thanks a lot,
Alex

Addressing appearance properties

Posted: Tue Jul 29, 2008 2:17 am
by Edward
Please let us know if any help is required.

Thank you.