I have a webdav server and to edit and save directly to the server I am using this protocol: ms-word:ofe|u| http://url.com/test.docx . But instead of directly using the document url I want to have a servlet that forwards or redirects to the file. When doing this though I get an error message Unexpected error from Microsoft office. Anyone know how I can achieve what I want?
The easiest way to implement this, if you're using java, is probably to integrate milton.io
Milton includes workarounds for all the different versions of windows and ms office so it actually works.
Its a framework designed to be attached to business web apps, and implementation is often trivial:
@PutChild
public Image uploadDoc(MyDocument doc, byte[] bytes) throws IOException {
// do whatever persistence you want, database, webservice, etc
return doc;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.