View Single Post

  #5 (permalink)  
Old 05-24-2005
luisfdo luisfdo is offline
Junior Member
White Belt
 
Join Date: May 2005
Posts: 8
Hi, look..

Code:
MapView[] views = new MapView[1];
ViewByScale viewByScale = new ViewByScale();
viewByScale.CenterPoint = llCenter;
views[0] = viewByScale;
MapSpecification spec = new MapSpecification();

spec.DataSourceName="MapPoint.NA";
spec.Views=views;
spec.Options=options;
spec.Pushpins=myPushPins;

render = new RenderServiceSoap();
render.Credentials = new System.Net.NetworkCredential(User,Pass);
render.PreAuthenticate=true;

MapImage[] mapImgs;
mapImgs = render.GetMap(spec);
Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImgs[0].MimeData.Bits));
						
pictureMapPoint.Image=bMap;
The problem is in this line
Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImgs[0].MimeData.Bits));

Thank you.. I already send you the code by mail.
Reply With Quote