显示标签为“broken”的博文。显示所有博文
显示标签为“broken”的博文。显示所有博文

2012年3月29日星期四

flow layout in rs2005

I have a report that needs to show postal addresses. The address is broken down into several fields. The problem I have is some of the address parts are optional. If they are empty, I'm left with nasty gaps in the address. I'd really like next label to reclaim the space of any empty labels.

a quick example

A full address would look like this..

customer name
address line 1
address line 2
town
county
post code

if address line 2 isnt given, I get:

customer name
address line 1

town
county
post code

but I want:

customer name
address line 1
town
county
post code

Can anyone help?

Many thanks,

Paul

Anyone know? Even if the answer is "sorry, can't do that". Could really do with an answer, I think I've downloaded the entire internet over the last day trying to figure it out!

Cheers|||

Hey Paul,

Can you try this:

=Fields!Customer_Name.Value
& IIf(Len(Fields!Address_Line_1.Value) > 0, chr(10) & Fields!Address_Line_1.Value, "")
& IIf(Len(Fields!Address_Line_2.Value) > 0, chr(10) & Fields!Address_Line_2.Value, "")
& IIf(Len(Fields!Town.Value) > 0, chr(10) & Fields!Town.Value, "")
& IIf(Len(Fields!County.Value) > 0, chr(10) & Fields!County.Value, "")
& IIf(Len(Fields!Postal_Code.Value) > 0, chr(10) & Fields!Postal_Code.Value, "")

This assumes that the Customer_Name field is required, but none of the others are. If the other fields have any length, it will add the line feed, otherwise it will not. It will put the whole thing in one textbox, I'm not sure if that was a requirement.

Hope this helps.

Jarret

|||

Ahh, ok. That works!!! Completely a different answer to how I expected, I thought it would be some layout thing somewhere.

Anyway - exactly the result I was after. Thanks for taking the time to help.

Paul

2012年2月19日星期日

FireFox 1.5.0.1 w/ SRS 2000 Toolbar Broken

I'm having a problem with report rendering in FireFox 1.5. For some reason the toolbar is about 200px high with some of the toolbar icons wrapping. Worse, the toolbar doesn't work. The first/next/back/last icons don't work and the page number textbox is disabled. Export doesn't work either. So basically it's not even useable. I've read that offically the Find/Print features are not supported for FireFox, but nothing beyond that. I also have had the same problem that I've seen in other forums where the report table itself is squished. I was able to fix that by using the solution that has been posted. For those that care, the solution involves adding a textbox with cangrow = false.

It's pretty frustrating that what is otherwise a very good reporting service can't operate with a 1st tier browser like FireFox. Hopefully I'm just missing something.. Anyone know a fix for the toolbar? Does FireFox 1.5 work ok with SRS 2005?

It seems the toolbar worked in FireFox 1.0.7, and has since broken in 1.5. Can anyone confirm this? Does anyone know a fix for this beyond hidding the toolbar and writing a custom one?

http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/187e360315edc91d/fe0e2b26732cff4d?q=firefox&rnum=19#fe0e2b26732cff4d