Addressing appearance properties

Stimulsoft Reports.NET discussion
Post Reply
api_itelio
Posts: 5
Joined: Wed Jul 23, 2008 6:11 am
Location: Germany

Addressing appearance properties

Post 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
Alexander Pichler
itelio GmbH, Germany
itelio GmbH
DocuSnap - Snap your network
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Addressing appearance properties

Post 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.
api_itelio
Posts: 5
Joined: Wed Jul 23, 2008 6:11 am
Location: Germany

Addressing appearance properties

Post 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
Alexander Pichler
itelio GmbH, Germany
itelio GmbH
DocuSnap - Snap your network
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Addressing appearance properties

Post 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.
api_itelio
Posts: 5
Joined: Wed Jul 23, 2008 6:11 am
Location: Germany

Addressing appearance properties

Post by api_itelio »

Ok, now everything works.

Thanks a lot,
Alex
Alexander Pichler
itelio GmbH, Germany
itelio GmbH
DocuSnap - Snap your network
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Addressing appearance properties

Post by Edward »

Please let us know if any help is required.

Thank you.
Post Reply