Copying the Legend to the Clipboard

Winwaed
03-07-2008, 05:32 PM
I'm trying to copy an image of the legend to the clipboard.
The Dataset.Copy method should do this.

The docs say that this method does the following:

DataSet: The data set to paste to the map, or an image of the data set legend or the location of each data point to paste in another application.

Of course it copied the image when I ran my test (using inbuilt demographic data), but it copies the names of all the data points when I try to use it with real data.
Both map Dataset objects are shaded maps.

So how does MapPoint determine which of the above three copy options are used?

Richard

Mattys Consulting
03-09-2008, 02:34 PM
Hi Richard,

I have a theory ... (haven't looked into it yet)
Custom clipboard and RegisterClipboardFormat

Mike Mattys

Winwaed
03-10-2008, 10:06 AM
Possibly.
I tried forcing a "paste bitmap" in case dual formats were being copied to the board. Didn't work.

This is a one-off project and all the maps per 'run' are based on the same base map (and same legend), I have chosen to create a bitmap file of the legend, and "paste from file". It gets the job done, as they say!


Richard

 
Web mp2kmag.com
mapforums.com