简体   繁体   English

服务器端运行Office Interops需要什么?

[英]What is required server-side to run Office Interops?

I am currently working on a MVC4 website and would like to add interoperability with MS Office for the following: 我目前正在MVC4网站上工作,并希望在以下方面增加与MS Office的互操作性:

Communicator 2007 (Presence status's only). Communicator 2007(仅限在线状态)。 Outlook (To send template emails from the end-user's Outlook). Outlook(从最终用户的Outlook发送模板电子邮件)。 Excel (To create data in an excel sheet and save.) Excel(在Excel工作表中创建数据并保存。)

Is it possible to do these with the Office Interop APIs without installing office on the hosting server? 是否可以使用Office Interop API进行这些操作而无需在托管服务器上安装Office?

Are there alternatives to the Interop that will provide same/similar functionality? 是否有可以提供相同/相似功能的Interop替代品?

I understand the security risks involved and Microsoft's discouragement against server-side automation. 我了解所涉及的安全风险以及Microsoft反对服务器端自动化的劝阻。

Unfortunately, the interops themselves don't actually implement any of the office functionality, you still need the required Office applications installed. 不幸的是,互操作程序本身实际上并没有实现任何Office功能,您仍然需要安装所需的Office应用程序。

I'd look at using SMTP for sending emails, and NPOI for your Excel needs. 我会考虑使用SMTP发送电子邮件,并使用NPOI满足您的Excel需求。 This will avoid the need for Outlook and Excel on the server. 这样可以避免在服务器上使用Outlook和Excel。 I'm not sure about communicator. 我不确定沟通者。

There are many third-party libraries that will create and read Excel files. 有许多第三方库可以创建和读取Excel文件。 GemBox and EEPlus are two that come to mind. GemBox和EEPlus是我想到的两个。

Redemption is an API for Exchange/Outlook that doesn't require Office itself be installed (you only have to install the MAPI COM dlls). 兑换是一种Exchange / Outlook API,不需要安装Office本身(您只需安装MAPI COM dll)。 It's COM though, so be prepared for COM interop for this one. 虽然是COM,所以请为此COM互操作做准备。

As for Communicator... ???. 至于Communicator ... ???。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 服务器端任务以查询Office 365帐户中的新电子邮件 - Server-side task to query Office 365 account for new emails 将 Blazor WASM 作为 Blazor 服务器端运行 - Run Blazor WASM as Blazor Server-Side 服务器端应用程序无法运行命令 - Server-side application fails to run command 客户端代码如何在服务器端运行? - How is client-side code run on server-side? 服务器端验证完成后运行javascript函数 - Run javascript function after Server-Side validation is complete 如何在数据库上运行独立的服务器端脚本 - How to run an independent server-side script on database Blazor(服务器端),具有组织/Office 365/Microsoft 帐户身份验证; 如何做本地多个角色? - Blazor (Server-Side) with Organizational/Office 365/Microsoft Account Authentication; How to do Local Multiple Roles? 什么.NET服务器端技术可以与AngularJS应用程序一起使用? - What .NET server-side technology can be used with an AngularJS app? .NET 核心 5.0 脚手架登录页面显示“需要 returnUrl 字段”(Blazor 服务器端) - .NET core 5.0 scaffolded Login page says "The returnUrl field is required" (Blazor Server-Side) 服务器端RequiredFieldValidators无法正常工作 - Server-side RequiredFieldValidators not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM