1

I have worked on ASP.NET with C# but no experience in visual studio to make Microsoft Office Applications.

Can you please suggest how can I do the below task :
I want to make a PPS file (Microsoft Power Point) in Visual Studio 2010 using ASP.NET with C#.

Also I want to add images/pictures in pps file and will send the file in email.

4

3 回答 3

2

只需我的 2 美分,如果您要将 ASP.NET 应用程序部署到您无法控制的环境,请远离 Office 自动化。您可以使用不需要在服务器上安装Office 的Office Open XML 。我认为这比使用自动化要困难一些,但它是值得的,因为它是免费的,并且互联网上有大量资源。一个是Open XML 开发者网站。

同样的事情也适用于电子邮件发送,使用System.Web.Mail命名空间而不是 Outlook 自动化。

于 2012-05-09T06:35:15.567 回答
0

这是一些关于如何从 c# 自动创建 ppt 的好教程

http://support.microsoft.com/kb/303718/

从文章

http://msdn.microsoft.com/hi-in/magazine/cc163471%28en-us%29.aspx

http://msdn.microsoft.com/en-us/library/bb960904%28v=office.12%29.aspx

这是一个简短的教程

http://www.eggheadcafe.com/community/csharp/2/10068596/create-ppt-slides-through-cnet.aspx

这是发送带有附件的电子邮件的方法

http://csharp.net-informations.com/communications/csharp-email-attachment.htm

我希望它能指导您完成正确的任务

于 2012-05-09T06:04:12.400 回答
0

发送电子邮件是不同的部分。使用smtp或任何其他协议发送电子邮件。要使用 C# 启动 pps,您可以在此处找到示例。使用 C# 的 Power Point 自动化
您会在此处获得发送电子邮件示例。发送邮件

于 2012-05-09T05:55:05.123 回答