Page 1 of 1

Leading spaces in Variables from the dictionary seems to be trimmed

Posted: Mon Oct 02, 2006 8:29 am
by spv123
I have a number of text fields on my report which simply contain variables from the dictionary eg {Field1}

I'm setting this in code at runtime by code similar to :

dim rpt as new Stimusoft.report.stireport
rpt.load("myreport.mrt")
rpt.dictionary.variables("Field1")=" Hello"
rpt.compile
rpt.render
rpt.show

When this displays the word "Hello" appears on the left hand side of the field (ie the leading spaces have been removed).

How do I stop this?

Leading spaces in Variables from the dictionary seems to be trimmed

Posted: Mon Oct 02, 2006 10:14 am
by EDV Gradl
I had a similar problem. It think it is a problem of GDI+.

Leading spaces in Variables from the dictionary seems to be trimmed

Posted: Mon Oct 02, 2006 10:31 am
by spv123
Was there any solution ?

Leading spaces in Variables from the dictionary seems to be trimmed

Posted: Mon Oct 02, 2006 10:53 am
by Vital
Yes, you are right. This is problem of GDI+. Please use property Margins of Text component.

Thank you.

Leading spaces in Variables from the dictionary seems to be trimmed

Posted: Tue Oct 03, 2006 10:55 am
by spv123
Sorry, I'm confused... Can you give me a little more of a pointer.. ? How do you mean "Margins of Text" ???

Leading spaces in Variables from the dictionary seems to be trimmed

Posted: Wed Oct 04, 2006 2:35 am
by Vital
This property allows you to set the distance between each border and content of StiText. Format of property: left;right;top;bottom

Thank you.