Manually Checked Check Box

Stimulsoft Reports.NET discussion
Post Reply
doghouse
Posts: 21
Joined: Thu May 15, 2008 6:18 pm
Location: WSyd.NSW.Au

Manually Checked Check Box

Post by doghouse »

Hi there, I have a report in which i would like to add check boxes that a user can check manually before printing the report, it must appear within the report but not on a form, is this possible? They have selections for options not related to data.

Is there a way of adding a text field which can then be used to calculate a markup or a discount to some calculated columns?

Cheers
Doghouse
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Manually Checked Check Box

Post by Edward »

Hello, Doghouse.
doghouse wrote:Hi there, I have a report in which i would like to add check boxes that a user can check manually before printing the report, it must appear within the report but not on a form, is this possible? They have selections for options not related to data.
Yes, there is the checkbox component available in the 'Components' toolbox. Please set 'Editable' property of this component in 'true'. Then the displayed value of StiCheckBox component can be changed when 'Tool Editor' is selected in the Window of Preview by clicking in this.
Is there a way of adding a text field which can then be used to calculate a markup or a discount to some calculated columns?
Yes, it is possible. Please use ternary operation in the Text property as follows:

Code: Select all

{AnyPossibleCondition ?MyDataSource.DataColumn+Markup:MyDataSource.DataColumn-Discount)}
Markup and Discount variables must be declared in the Dictionary.

Thank you.
doghouse
Posts: 21
Joined: Thu May 15, 2008 6:18 pm
Location: WSyd.NSW.Au

Manually Checked Check Box

Post by doghouse »

Hi Edward, thanks for the reply, the check box does not work, the check box only highlights but cannot be checked. Need I set anything else other than "editable" ?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Manually Checked Check Box

Post by Edward »

Only two things must be set:

1) Editable property of the CheckkBox.

2) In the Preview Window you have to enable 'Editor Tool'.

Image

After that click on the CheckBox will change its state according to the following property's values:

CheckStyleforFalse
CheckStyleforTrue

Thank you.
doghouse
Posts: 21
Joined: Thu May 15, 2008 6:18 pm
Location: WSyd.NSW.Au

Manually Checked Check Box

Post by doghouse »

Edward, my apologies, I forgot that I had set it 0/1 when playing around :brick:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Manually Checked Check Box

Post by Edward »

Thank you for this information. I think that we should change the behavior of the CheckBox fo this case too.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Manually Checked Check Box

Post by Vital »

Hello,

Problem solved. Please check build from 24 June.

Thank you.
Post Reply