cflannagan Posted November 11, 2005 Report Share Posted November 11, 2005 See title We have a web-based application and I was wondering if it's possible to run a macro via Javascript (or any other common web-based means would do). We are using ASP.NET for the web-based application if that helps. Thanks, CFlannagan Quote Link to comment Share on other sites More sharing options...
randallc Posted November 11, 2005 Report Share Posted November 11, 2005 Hi, Yes - See "Help" about running from command line Recent example in this post; Shell (MacEx3 + "meproc.exe /ARetrieverFromRegistryMacro") eg vba MacEx3 = "c:\program files\macro express3\"Shell (MacEx3 + "meproc.exe /ARetrieverFromRegistryMacro") Best, Randall Quote Link to comment Share on other sites More sharing options...
cflannagan Posted November 14, 2005 Author Report Share Posted November 14, 2005 I'm getting somewhere here - but I think security setting is preventing me from execute the js line of code - I keep getting a "Permission Denied" error. Where would I change the setting to allow this line of code to be executed? Thanks, CFlannagan Quote Link to comment Share on other sites More sharing options...
randallc Posted November 14, 2005 Report Share Posted November 14, 2005 Sorry, I don't know; try yuor main "Run" command line at Windows start button; if that runs it ok, I would need to know more about js; ? a js forum?; best, randall Quote Link to comment Share on other sites More sharing options...
cflannagan Posted November 14, 2005 Author Report Share Posted November 14, 2005 Sorry, I don't know; try yuor main "Run" command line at Windows start button; if that runs it ok, I would need to know more about js; ? a js forum?; best, randall Yup, it runs ok from Run command. I don't have any luck running it from ASP.NET either.. I used the following method: System.Diagnostics.Process.Start("C:\MyFolder\VT_Login.mxe") which I imagine would run ok because the windows environment already have the Macro Express file association with .mxe. And also the following won't work either (code is in VB.NET): Dim sMeprocLoc As String = "C:\Program Files\Macro Express3\meproc.exe" Dim sParam As String = "/MXEC:\MyFolder\VT_Login.mxe" System.Diagnostics.Process.Start(sMeprocLoc, sParam) I do see MeProc process being started in the Task Manager, though.. but the username was "ASPNET". Simple for me to get it running from command line, but I'm having a lot of trouble trying to run it from javascript, ASP.NET, or some remote means.. hmmm.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.