thanks for your reply, I copied your code into the "Script command text" of invoke script, but nothing happens in my application. Is there anything missing? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Invoke-Script-tp6701807p6762899.html Sent from the MapGuide Users mailing list archive at Nabble.com.