Page 1 of 1

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 7:49 am
by Fabio Pagano
I have three fields, one with a fixed text, one with a sum of a database field (eg. "Sum(Amount)") the other one with a fixed text. I need to obtain something like:

"Total amount: 123,45 including VAT."

The value "123,45" represents the second field.

I have designed the report this way:

Image

but the result is:

Image

while i wanted this:

Image

In few words, i need that the third field ("including VAT") shifts to left according to dynamic dimension of the second field.

I know that i can do a single text field, but i need to format the value field, so it must be separated from the others.

Is there a way to solve this?

Thanks.

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 8:00 am
by EDV Gradl
Use one field and use the GetValueEvent.

Marco

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 8:34 am
by Fabio Pagano
I cannot use events during rendering because the report isn't managed by the program itself but through a generic dll that incapsulates the stimulsoft dlls.

Thanks.

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 8:42 am
by Vital
Why don't use for second text following expression:

Code: Select all

{Sum(Moviment)} including Vat.
?

Thank you.

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 8:44 am
by Vital
For also you can use Tabulation in text expression.

Thank you.

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 8:48 am
by Fabio Pagano
Vital wrote:Why don't use for second text following expression:

Code: Select all

{Sum(Moviment)} including Vat.
?
The value must be in an isolated field because it must be formatted, if i add a fixed string after the value the "format" doesn't work.

Thanks.

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 10:17 am
by Brendan
You could try Left Docking and CanShrink = true on the Text component that contains your numerical format.

Automatically "left-shift" a field

Posted: Fri Dec 07, 2007 6:50 pm
by Vital
You can use following expression:

Code: Select all

Total amount: {string.Format("C", Sum(Moviment))} including Vat.
Thank you.