all groups > sql server reporting services > june 2005 >
You're in the

sql server reporting services

group:

Text boxes not allignigning correctly in html


Text boxes not allignigning correctly in html moondaddy
6/2/2005 11:17:58 PM
sql server reporting services:
I'm rendering reports in aspx page by calling the ssrs web service and
rendering them in the code behind. I use the bottom border of the text
boxes and I use one textbox as a label and another text box to its right for
the data. These textboxes are positioned right next to each other to the
bottom border looks like one continues line. when There's no data in the
text box on the right, its bottom edge is a few pixels lower than the one on
left (being used as a label). This looks bad. however, when pulling up
data/record where the textbox on the right now has data in it, all look
fine. When rendering the same report in report manager as html the same
problem happens, but when I export to pdf from report manager, it looks
perfect.

Can anyone explain what's happening? Is the html table cell not stable when
there's no data in it? Any solutions?

Thanks.


--
moondaddy@nospam.nospam

Re: Text boxes not allignigning correctly in html Wayne Snyder
6/5/2005 8:16:35 AM
I have seen this as well... And I don't rmember if I ever got around it...
One this you might try is putting a single space in the field using a
computed column when the SQL value is null or '' ( I really don't remember
if that helped me or not..tho)

--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)

I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org

[quoted text, click to view]

Re: Text boxes not allignigning correctly in html moondaddy
6/6/2005 11:44:32 PM
I found that if I look at the html produced by the report, I could see that
the html was not generated correctly. I forget exactly what, but when I
looked at it in VS2003 html designer it was obvious. As a work around I
used a table instead of labels and textboxes (textboxes and textboxes) and
all aligned correctly.

--
moondaddy@nospam.nospam
[quoted text, click to view]

AddThis Social Bookmark Button