Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSProjectApi.Application.GetActiveInstance() Does Not Work #375

Open
kennydarnold opened this issue Jan 12, 2023 · 0 comments
Open

MSProjectApi.Application.GetActiveInstance() Does Not Work #375

kennydarnold opened this issue Jan 12, 2023 · 0 comments

Comments

@kennydarnold
Copy link

kennydarnold commented Jan 12, 2023

I have a PowerPoint Add-in that I'm developing that needs to read some stuff from open MS Project files. I'm trying to use this method: NetOffice.MSProjectApi.Application.GetActiveInstance(); but it always returns null even when MS Project is open and running. Turning on the throwExceptionIfNotFound argument, I get this error:

image

I can use prjApp = new MSProjectApi.Application() which will set the prjApp variable to the running instance of MS Project if it is currently open, but if MS Project is not running, it will start an instance of it in the background. In my scenario, I do not want it to do this.

Here are the versions of PowerPoint and Project I'm using:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants