从FileStream(或类似)打开Excel / Word文件

时间:2021-05-02 00:29:12

I'm using C#, .NET 4.0 and the office interop library to read the contents of the file.

我正在使用C#,.NET 4.0和office互操作库来读取文件的内容。

I'm reading the office files from BLOBs, so I'm wondering if there's a way to directly input the filestream instead of opening it from disk? Perhaps I need to use another library for this?

我正在从BLOB读取办公室文件,所以我想知道是否有办法直接输入文件流而不是从磁盘打开它?也许我需要为此使用另一个库?

EDIT: I should note that it needs to support older office formats as well!

编辑:我应该注意它也需要支持旧的办公格式!

1 个解决方案

#1


0  

This might help: How to: Open a Word Processing Document from a Stream

这可能会有所帮助:如何:从流中打开Word处理文档

#1


0  

This might help: How to: Open a Word Processing Document from a Stream

这可能会有所帮助:如何:从流中打开Word处理文档