Hi All,I have a problem with exporting PNG file through running a published GP service. I made a simple tool to export a png file from MXD with python. When I run my script on ArcMap Desktop, I can get a png file stored in a specific folder. However, after publishing as a GP service and running it, the png file has no Bingmap basemap with it. Could anyone help on this? I knew that for ArcGIS Desktop, we can install a patch to active bing map with Bing maps key. But I have no idea to active the Bing maps key for ArcGIS Server. We are using 10.1 version now. Besides, I realize that our Bing Maps Extension is expired. Is it being used on ArcGIS Server 10.1 still? import arcpy,datetimearcpy.env.overWriteOutput = 1
mxd = arcpy.mapping.MapDocument(r"F:\ArcGISData\bingmap.mxd")
filepath = r"F:\ArcGISData"
pngName = "\BINGMAP.png"
outputfile = filepath+pngName
arcpy.mapping.ExportToPNG(mxd,outputfile)
Thanks!-YANG