question

JokinCeleminCampo-8125 avatar image
0 Votes"
JokinCeleminCampo-8125 asked JokinCeleminCampo-8125 commented

Export Microsoft.Office.Interop.MSProject with ViewApply to excel not works

Hi,

I'm trying to export a MSProject to excel with specific view.

Works fine to PDF, but I don't know how do it to export to excel, alwais appears the assistant of save as.

Application appclass = new Application();
appclass.FileOpenEx("test.mpp");
appclass.Visible = true;

Project project = appclass.ActiveProject;
appclass.ViewApplyEx("Specific View");

appclass.DocumentExport("test.pdf", PjDocExportType.pjPDF); //OK
appclass.FileSaveAs("test.xlsx", PjFileFormat.pjXLSX); //Open save file assistant and export all tasks

appclass.FileCloseEx(PjSaveType.pjDoNotSave, System.Reflection.Missing.Value, System.Reflection.Missing.Value);


Thanks and regards

office-vba-dev
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JokinCeleminCampo-8125,
Your problem is related to Office for Developer, I changed the tag to office-vba-dev. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

0 Votes 0 ·

Thanks a lot!

0 Votes 0 ·

0 Answers