create MSProject programatically using asp.net web application (vb

N

Nora

I want to create an MSProject object,populate it, and open it on the server,
using a web application. I managed to make it to work...but the WINPROJ.EXE
process was active until I killed manually (the account is NETWORK SERVICE).
I tried to use the Kill method...it works fine. The problem is...I cannot
implement this in the production...because of the security risks.

I would like to know, what is the optimal way to do this? Here is my code:

Dim app As New Microsoft.Office.Interop.MSProject.Application()
Dim project As Project = app.ActiveProject
.....
project.SaveAs(fileNamePath)
app.DocClose()
app.Quit()
System.Runtime.InteropServices.Marshal.ReleaseComObject(app)
app = Nothing
project = Nothing
 

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