通过 ASP.NET 将 mpp 文件导入 SQL Server?
我有一个任务是通过 ASP.NET (C#) 将 mpp 文件导入数据库。 任何人都可以就此事给我建议吗? 非常感谢任何帮助。
谢谢。
I have an assignment which is to import mpp file into database via ASP.NET (C#).
Can anyone please advice me on this matter.
Any help is very much appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据情况,使用Interop不一定是一个好的选择(必须在计算机上安装Project)。
您可以使用MPXJ打开mpp文件并读取其中的信息。它是免费和开源的,并且运行得相当好,但由于它是从 Java 移植的,因此您必须在 .NET 代码中以 Java 方式执行一些操作。
付费选项是 ASPOSE.Tasks,使用起来更好一点,但相当昂贵。
Depending on the situation, using Interop isn't necessarily a good choice (have to have Project installed on the machine).
You can use MPXJ to open the mpp file and read the information in it. It's free and open-source and works fairly well, though since it's a port from Java, you have to do some things in a Java way in your .NET code.
A paid option is ASPOSE.Tasks, which is a little nicer to use, but pretty expensive.
项目可编程性在 C# 中可用,但文档是仅适用于 VBA。
这应该可以帮助您继续操作 - 可以使用列表中的项目主互操作程序集从 C# 访问 VBA 中可用的所有内容 此处。
查看 Application.FileSaveAs。
Project programmability is available in C# but docs are only available for VBA.
This should get you going - all the stuff that is available in VBA can be accessed from C# using the Project Primary Interop Assembly from the list here.
Check out Application.FileSaveAs.