保存和打开远程文档 [英] Save and Open Remote Documents

查看:280
本文介绍了保存和打开远程文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我什么都不知道有关Microsoft Office的发展,但我想建立一个插件的原型将允许用户从远程仓库保存和打开文件。也许以后建立在服务器上的版本控制系统 - 但服务器端片约(对我来说)它最简单的部分。也许我应该专注于获得此为一次在一个Office应用程序的工作 - 比如微软Word(除非人认为Excel是更容易使用)。并让目标的Office 2007(因为这是我所安装的)。

I know nothing about microsoft office development, but I would like to build a prototype of a plugin will allow a user to Save and Open documents from a remote repository. Perhaps later build in a version control system on the server - but the server side piece is about the easiest portion of it (in my case). Perhaps I should focus on getting this to work for one office application at a time - say MS WOrd (unless folks think excel is easier to work with). And lets target Office 2007 (as that is what I have installed).

储存库将存储标记的文档(由许多标记多种类型的)。保存外接程序文件需要先显示一个对话,并允许标记。外接程序需要提交的标签数组与文档一起(Base 64编码?)通过SOAP或REST API到我们的服务器。几个问题

The repository will store the document Tagged (by many tags, of many types). Saving the document the AddIn will need to first Show a dialogue and allow the tagging. The AddIn needs to submit an array of Tags along with the document (Base 64 encoded?) over a SOAP or REST api to our servers. Few questions


  1. 这可能吗?如果是这样的建议,以它如何实现呢?有没有获得访问二进制数据的机制(流?)的文件,你正在查看?

  2. 是否有可能回小猪这一关文件 - 另存为对话的?或将我需要创建自己的菜单项? Obviuos前者可能是比较熟悉的用户...

  3. 是否有已为远程文档的机制持久性,我可以小猪背过的?

在多个文件已保存,我们将需要检索的文件/打开它们的方法。所以,我觉得我需要的对话,让浏览docucents标签类型 - >标签值(可能有更多层次的树,而是想从这里开始)。一旦文件被打开,我认为这个API需要

Opening

Once a number of documents have been saved, we will need a method of retrieving the documents / opening them. So I would think I would need a dialogue that allows browsing docucents Tag Type -> Tag Values (there may be more levels to the tree, but want to start there). ONce the document is opened I think the API would need to


  1. 请RPC调用(SOAP / REST)来检索文件 - 解码内容(实际文件),并打开Word(例如)

  2. 里面那个流我也想保持我的标签内存

为了最好地可视化的Word之间交换的数据和服务器可以想像一个XML结构,如:

XML Design

In order to best visualize the data being exchanged between Word and the server lets imagine an XML Structure like:

<document name="recapOfTheGame.doc">
   <tags>
      <tag type="team">New York Yankees</tag>
      <tag type="team">Boston Redsox</tag>
      <tag type="city">New York</tag>
      <tag type="city">Boston</tag>
      <tag type="type">recap</tag>
   </tags>
   <content encoding="base64">AKJSGHKASHGFKSJDHGFKSJDHGFSKDJFHGSKJDGSKDJGSKDJFHGSDKJFH</content>
</document>



库资源管理器应显示在树多个地方本文件;这里是显示五个地方本文件(基于标记)的仓库的例子:

the repository explorer should show this document in multiple places in the tree; Here is an example of a repository showing this document in five places (based on the tags):

repository
    + untagged <not shown in XML>
    - team  
        + Tampa Bay Rays <not shown in XML>
        - Boston Resox
               recapOfTheGame.doc
        - New York Yankeeys
               recapOfTheGame.doc
    - city
        + Tampa Bay <not shown in XML> 
        - new york 
               recapOfTheGame.doc
        - boston
               recapOfTheGame.doc
    - type
        + box scores <not shown in XML> 
        - recaps
               recapOfTheGame.doc



其他的想法



我只提供的XML设计,使这个概念更加切实,而我打开存储标签(如果这是可能的文档中)的其他方法。基本上任何方向,我可以在这一努力将不胜感激给予

Other Thoughts

I only provided the XML design to make the concept more tangible, and I am open to other methods of storing the tag (within the document if that is possible). Basically any direction I can be given on this endeavor would be greatly appreciated.

我问这个问题,不同的检查,如果反应会有所不同,的http://stackoverflow.com/questions/3737728/open-word-document-from-database-or-webservice

I asked this question differently to check if the responses would differ, http://stackoverflow.com/questions/3737728/open-word-document-from-database-or-webservice

我接受WEBDAV的answere - 下面,因为它是常见的两者之间,是户外做什么

I am accepting the webDav answere - below as it is common between the two and is what alfresco does.

感谢您

推荐答案

看看使用WebDAV打开/保存的文件;办公室有这种支持,但情况因人而异。如果您无法使用内置Office的支持,使用 WebDrive ,NetDrive的等,或建立自己的。

Look at using WebDAV to open/save the documents; Office has support for that, though ymmv. If you can't use the built-in Office support, use WebDrive, NetDrive etc, or build your own.

另一种选择是的SharePoint协议,如果你的资料​​库支持它。露天例如,已经克隆了这一部分。这也有一个内置的Word客户端。

Another alternative is SharePoint protocol, if your repository supports it. Alfresco for example, has cloned parts of this. This also has the advantage of a built-in client in Word.

CMIS比WebDAV的更现代,你必须建立,虽然自己的客户优势(看看阿帕奇化学)。不过,如果你的资料​​库支持的话,这可能是去;

CMIS is more modern than WebDAV, you'd have to build your own client though (look at Apache Chemistry). Still, this might be the go if your repository supports it;

您也可以使用SOAP和REST,你提到,通过VSTO,但这些也落入建立自己的客户端类。

You could also use SOAP or REST, as you mention, via VSTO, but these also fall into the build your own client category.

关于标签:您可以通过这些作为WebDAV属性。它也可能是值得把他们的的docx作为CustomXML部分(或只是文档属性 - 它的优点在于,他们在字UI中可见)的内部。,所以该文档具有它们即使移动或任何

Regarding the tags: you could pass these as WebDAV properties. It may also be worth putting them inside the docx as a CustomXML part (or just document properties - which has the advantage that they're visible in the Word UI), so the document has them even if moved or whatever.

这篇关于保存和打开远程文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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