Groups | Blog | Home
all groups > sql server reporting services > december 2005 >

sql server reporting services : Leading spaces are truncated by the service packs ( SP1 & SP2)


Christoph Wienands
12/27/2005 12:56:37 PM
Hi Jerone,

[quoted text, click to view]

One workaround might be in the query to prefix the affected strings with one
character, e.g. "|". Then in the report you strip of the character. Maybe
that will work.

Christoph

Potter
12/27/2005 1:26:11 PM
Jerone,

Is the data losing the leading spaces numeric data or varchar data? If
it is numeric data, you might want to cast it as a string in your SQL
and RS should preserve it.

Another option is to use an expression on the Left Padding property of
a report control. It does a nice job of identation.
Jerone Croos
12/27/2005 10:18:47 PM
Hi,

I have couple of reports which retrieves records with leading spaces.
the leading spaces vary and forms the proper indentation for the fields
to produce a visually pleasing presentation. unfortuanetly, after
installing the SP1(even tried the SP2) the leading spaces are implicitly
truncated by the reporting services. Anyone have come across this issue?
any workarounds? or settings needed to correct this?

Thanks,
Jerone Croos
12/28/2005 8:52:00 AM
[quoted text, click to view]

Chris,

I tried that. Even if the resultant display string has the leading
space, it gets trimmed. I am finding this bit frustrating. I hope there
Jerone Croos
12/28/2005 9:33:28 AM
[quoted text, click to view]

Potter,
Thanks. That helped. The values were varchar. I used the left padding to
AddThis Social Bookmark Button