Text field: brush color (background color)

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Text field: brush color (background color)

Post by Fabio Pagano »

I was wondering why the default background color of a field is "10% Gray". Couldn't it be white or transparent? May i change this default when i invoke (by code) the designer?

Thanks.
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Text field: brush color (background color)

Post by Guest »

The default background color of the textbox is that you choose the last time. So set the color what you want and it must been saved as the default color.

Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Text field: brush color (background color)

Post by Fabio Pagano »

Don't know if i'm missing something, but i have created a text field, i've setted the brush "Empty", closed, reopened, created a new text field but the brush always defaulted to "Solid" instead of the last choosen "Empty".
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Text field: brush color (background color)

Post by Edward »

Please use the following property to avoid the behavior which was described above:

Code: Select all

report.Info.UseLastFormat = false;
Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Text field: brush color (background color)

Post by Fabio Pagano »

Sorry but didn't solve, this is the code:

Code: Select all

Dim rpt As New Stimulsoft.Report.StiReport

        rpt.Info.UseLastFormat = False

        rpt.Design()
I've also tried

Code: Select all

        rpt.Info.UseLastFormat = True
with no success.

When i draw a text field, it is created with the default brush "Solid". I change to "Transparent". Then if i draw another text field, the brush is "Solid" and not the last one used ("Transparent"). Using build of 23 august.

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Text field: brush color (background color)

Post by Edward »

in that case please put this lines in the start of your Application:

Code: Select all

            StiSettings.Load();
            StiSettings.Set("StiDesigner", "UseLastFormat", false);
            StiSettings.Save();            
Thank you.
Post Reply