在Windows服务器上安装Open XML Sdk 2.0是否安全? [英] Is it safe to install Open XML Sdk 2.0 on Windows server?

查看:59
本文介绍了在Windows服务器上安装Open XML Sdk 2.0是否安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从datatable创建和下载excel文件。以下我用过的方法。



1]直接通过HTTP响应流。在HTTP响应中直接发送HTML代码,其中一些HTML标记带有数据表循环。



问题 - 当我们(另存为)excel文件时保存它更改其(保存)作为一个网页因为我发送的HTML内容。



2]我也使用Microsoft Interop dll。我的工作差不多完成了...... !!



问题 - 我已经读过它需要办公室才能在服务器上安装,这不是微软推荐的。



3]我不想为这项任务购买任何东西。因此,根据我的研究,我找到了另一个选项,即打开xml。我使用openxml dll在我的本地机器上完成了这项任务,为此我安装了Open XML Sdk 2.0(3.8 MB)。我想现在在服务器上发布此任务。显然我需要在服务器上安装Open XML Sdk 2.0。



在服务器上安装这个sdk是否安全?或者它是否像微软办公室一样冒险?



如果我做错了,请建议做什么。



谢谢。

I want to create and download excel file from datatable.Following methods I have used to do this.

1] Directly stream through HTTP response. Sent HTML code directy in HTTP response with some HTML tags with datatable loop through in.

Problem - When we (Save as) excel file while saving it changes its (save as type) as a web page because of the HTML content I am sending.

2] I haved also use Microsoft Interop dll. My work was almost done...!!

Problem - I have read that it requires office to install on server and this is not recommended by Microsoft.

3] I dont want to purchase anything for this task. So as per my study I have found another option that is open xml. I have done this task on my local machine using openxml dll and for that I have installed Open XML Sdk 2.0 (3.8 MB) setup. I want to publish this task on server now. So obviously I need to install Open XML Sdk 2.0 on server too.

Is it safe to install this sdk on server? or Is it risky like microsoft office?

If I am doing anything wrong then please suggest what to do.

Thanks.

推荐答案

在任何地方安装此SDK绝对没有错。这只是一个图书馆而且根本没有任何威胁。在很多方面,它也比Office Interop好得多。 Interop操作取决于Office安装的可用性,这是严重许可限制的主题;此外,与Open XML SDK相比,这种安装非常重。



(我不知道微软气馁的是什么。你能提供一个链接吗? ?)



-SA
There is absolutely nothing wrong with installing this SDK anywhere. This is nothing but a library and presents no threats at all. In many ways, it''s also much better then Office Interop. Interop operations depends on availability of Office installation, which is the subject of serious license limitations; also, such installation is heavy-weight, in contrast to Open XML SDK.

(I don''t know what was discouraged by Microsoft. Could you provide a link?)

—SA


这篇关于在Windows服务器上安装Open XML Sdk 2.0是否安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆