hint: opening enterprise project from HTML page

B

Boris Key

Hello Dear,

recently I needed a solution to open project plans from server, but instead of PWA from my HTML page. Solution was found and implemented with Windows Script Hosting. Please see cut from HTML page below:

....
<SCRIPT Language="JavaScript">
//run MS project from browser
function runJSMode(name)
{
var path='"c:\\Program Files\\Microsoft Office\\OFFICE11\\WINPROJ.EXE" "<>\\' + name +
'.published"';
var RunShell = new ActiveXObject("WScript.Shell");
var TestRun = RunShell.run(path,1,0);
}
</SCRIPT>
....

<td class="cell"><a href="##" onclick="javascript:runJSMode('#qryCurrentProjectsSorted.project#')"
class="projectNameLink">#qryCurrentProjectsSorted.project#</a></td>
....
#qryCurrentProjectsSorted.project# is result of query, which extracts project name from database

Hope this helps.

Boris Key,
Ukraine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top