we are using ArcGIS 10.8.
from client(browser) we have given an option to load the mxd (authored with colour and layer ordering) and related geodatabase. Both database and mxd we are storing in server.
Now we have to publish GP Service to open and show the mxd in browser. the bellow code we have converted into GP service
import arcpy, os
... parentDir = r"D:\DULT\2022\DultDBs"
... findfile = "LAMP2021.mxd"
... for (path, dirs, files) in os.walk(parentDir):
... for file in files:
... if file.lower().endswith(".mxd"):
... mxd = arcpy.mapping.MapDocument(os.path.join(path, file))
... str = mxd.filePath
... if (str[21:]=findfile)
os.startfile(mxd) Now how to open/call this service from browser to show the mxd. Can it be possible to render the mxd on browser.
Is it a right way to address the issue or any alternate solution exist. Kindly guide.