Forum Discussion
Microsoft.Office.Interop.MsProject library in Azure Function for C#
Hello.
I expose my case although I don't know if I should do it here or elsewhere. If it's in another, they tell me.
I have a project in C# of type Azure Function. I have to open an Office Project. In previous versions it was done with the Microsoft.Office.Interop.MsProject library at the desktop level, but from what I've read, in Azure function you have to do it at the server level.
I can't find anything that helps me how to do it and I wanted to know if you could help me.
Greetings and thanks.
Hello allanero ,
I'm not sure how you would use the Microsoft.Office.Interop.MsProject library in an Azure Function as Project Desktop will not be available in the Azure Function. From an Azure Function you could look to access the Project Web App in Project Online using either CSOM or REST. Here is an example working with the Project Online Reporting API using PowerShell from an Azure Function: https://pwmather.wordpress.com/2017/08/01/running-projectonline-powershell-in-azure-using-azurefunctions-ppm-cloud-flow-logicapp-part2/ This was written a few years ago now so the Azure Function UI / options might be slightly different.
Paul
- allanero2005Copper ContributorHi, Pablo.
Thank you very much for your answer. I'll look into it and see what I can do with what you've told me.
Greetings and thanks.