通过 ASP.NET 将 mpp 文件导入 SQL Server?

发布于 2024-10-02 10:05:57 字数 82 浏览 11 评论 0原文

我有一个任务是通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏了南城 2024-10-09 10:05:57

根据情况,使用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.

少跟Wǒ拽 2024-10-09 10:05:57

项目可编程性在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文