×

Loading...
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!

my 2 cents

1. since certain version of office, the documents are stored in XML format. if your docs are of those new versions, probably you can parse it yourself if the task is not very complex.

2. if you use want to call Office component to do the job, no way you can just install one or a couple DLLs. Unfortunately you have to install the whole Office application - there is also a license issue you have to take into account. and like BLUE said, calling Office in a web server might cause you trouble - it's not stable.

3. Other than Google, probably Open Office is an alternative which is useful in your case to open and process the MS Office docs.

If you give more details on your requirements, a shortcut/workaround might be available.
Report

Replies, comments and Discussions:

  • 工作学习 / 学科技术讨论 / 要在asp.net server端操作office文档,算office automation吧,请问如果server不能装office,可不可以只装个gac甚至bin里面放个dll就可以了呢?谢谢。
    • check
      • 谢谢。看过了,好像没有直接答案。似乎还得装些东西才能运行那些库啊
        • It means using office automation in server will cause you trouble.
          • 现在google是可以打开查看powerpoint文件的,所以应该不是无解的。我只要导出或者解析它,是不是有什么别的方法
            • MS office automation in server causes trouble doesn’t mean other office automation solution in server cause trouble. In my understanding, your are going to use MS office automation in server.
            • BTW, opening a file doesn’t mean automation.
              • 是有些不同,不过不仅是打开文件来看,要运行com的函数啊。如果其他第三方软件有相同的函数功能而不用安装office,自然更好了。谢谢
            • my 2 cents
              1. since certain version of office, the documents are stored in XML format. if your docs are of those new versions, probably you can parse it yourself if the task is not very complex.

              2. if you use want to call Office component to do the job, no way you can just install one or a couple DLLs. Unfortunately you have to install the whole Office application - there is also a license issue you have to take into account. and like BLUE said, calling Office in a web server might cause you trouble - it's not stable.

              3. Other than Google, probably Open Office is an alternative which is useful in your case to open and process the MS Office docs.

              If you give more details on your requirements, a shortcut/workaround might be available.
              • 好,谢谢。目前的的要求是用户把powerpoint上传,我们把它导出为slide图片,自动导入我们的online presentation应用里。powerpoint 的标题和内容也尽量存进数据库。因为图片的缘故,光读xml恐怕不行,而且老版的powerpoint要兼容,xml也不行。
                • If that's the case, you have to go MS Office or Open Office automation or see if there is any 3rd-party off-the-shelf components. Or waiting for an expert...
                • If the "users" you referred to are "internal" or corporate users (vs. Internet users),
                  probably you can develop a client-side component to run at the client side - calls client's Office instance, extracts contents from PPT and then upload to the servers the extracted contents only. I did the similar solution before.
                  • 谢谢,不过那成c/s结构了,客户端支持又是问题。我对浏览器要在客户端做设置的系统支持的痛苦可是深有体会的。
                    • Yes, that's pain. I know it :-). That can be the last resort. Let me know if you have to go down this way. I might help you with some tricky issues.
    • up
    • 不要折腾。。有钱可以装office communications server..
      • 其实这都不用,有点钱自己做服务器,不要人托管,那还不是装个office就得了
        • just install ms office on server will violet copy rights and might in trouble