I ran across this posting from Vish about some code he wrote and is sharing that will do some nice things. So if you are programming in .NET for ArcGIS Server and are pulling map resources from a number of places, you may want to check out this code.
From his posting:
The features of the code snippet are:
- Generates images at the required DPI
- Customizable legend title
- Handles group layers
- Handles symbol groups
- Creates a legend image of the desired height and width. If the legend entries overflow the height specified, they will be omitted. If all legend entries are required in the images, it should only involve a small change in code to remove the check for overflow.
Here is an example of a legend generated by the snippet.