Search code examples
c#.netoffice-interop

Opening an Excel/Word file from FileStream (or similar)


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

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?

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


Solution

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