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

sql server reporting services

group:

Using Reporting Services with a map of say ... USA



Using Reporting Services with a map of say ... USA eichewy
11/28/2005 3:55:46 PM
sql server reporting services: Has anyone used Reporting Services with a map of USA with the States
outlined?
Here's what I am trying to do ... I have data that counts inventory at
each Store across the USA. I want to sum the Store data by State. And
then display that information in a USA States map .... changing the
color of each State so that those States that have too little inventory
are RED and those with too much inventory as GREEN....(for example) ...
Can anyone help please?
Re: Using Reporting Services with a map of say ... USA Teo Lachev [MVP]
11/29/2005 10:32:43 AM
I think it is possible although not trivial. Here are two approaches you can
consider:

1. Add the US map as an image to your report. Create and add overlapping
green and red images for each state. Use an expression-based Hidden property
for each image. Now, because the RDL object model doesn't currently give you
access to the properties fo the report items on the report or/and positional
access to the dataset records, you would need to set the Hidden expression
to call a method in a custom assembly. That assembly would retrieve and
cache the dataset, locate the state record, and return True or False
accordingly.

2. With RS 2005, consider a custom report item. It is more work but the
final result may be worth it. Hey, you may package and sell that image
control one day... You never know :-)

Have fun!
--
HTH,
----------------------------------------------
Teo Lachev, MVP, MCSD, MCT
"Microsoft Reporting Services in Action"
"Applied Microsoft Analysis Services 2005"
Home page and blog: http://www.prologika.com/
----------------------------------------------
[quoted text, click to view]

Re: Using Reporting Services with a map of say ... USA Teo Lachev [MVP]
11/29/2005 12:58:40 PM
Of course, if you could flatten the state dataset so it has only one row
with as many columns as the states, you can simplify things a lot. In this
case, you don't need the custom assembly at all. Instead, you could just
reference the appropriate state column using First!<StateName>.Value from
the Hidden expression.

--
HTH,
----------------------------------------------
Teo Lachev, MVP, MCSD, MCT
"Microsoft Reporting Services in Action"
"Applied Microsoft Analysis Services 2005"
Home page and blog: http://www.prologika.com/
----------------------------------------------
[quoted text, click to view]

Re: Using Reporting Services with a map of say ... USA Sumit Pilankar
11/29/2005 5:18:40 PM
Hi Eichewy,

I dont think that this is possible. I guess, u need to use C# or ASP.NET
with ADOMD and try to achieve this.

http://www.codeproject.com/cs/database/CubesAdomd.asp
http://www.businessintelligence.com/ex/asp/code.52/xe/article.htm

Sumit Pilankar

[quoted text, click to view]

AddThis Social Bookmark Button