[英]How to programmatically open an Office file locate on a Server with c#?
i have a VSTO application(WPF) which can save an opened Excel File on a IIS Server(WCF). 我有一个VSTO应用程序(WPF),可以将打开的Excel文件保存在IIS服务器(WCF)上。 I'm planning to use it on different PCs.
我打算在不同的PC上使用它。 So i'm trying to implement a function that open a file located on this Server.
因此,我正在尝试实现打开位于此服务器上的文件的功能。 But it seems very difficult to be!
但是似乎很难!
I think you can do it in that way. 我想你可以那样做。 Get the file content from the server as string or byte and save it to some temporary location.
从服务器以字符串或字节的形式获取文件内容,并将其保存到某个临时位置。 The you can use the Workbooks.Open method http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.workbooks.open.aspx
您可以使用Workbooks.Open方法http://msdn.microsoft.com/zh-cn/library/microsoft.office.interop.excel.workbooks.open.aspx
[EDIT] I have found something useful for you I think. [编辑]我发现了一些对您有用的东西。 Take a look at this Managing Documents on a Server by Using the ServerDocument Class
看看使用ServerDocument类在服务器上管理文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.