Let’s begin with the tool that we need.
OpenXML Productivity Tool & OpenXML SDK (Download)
OpenXML is a tool for create MS documents programmatically. And the best part is, OpenXML is an InteropFREE solution!
You can work without any physical location for your files. It’s a life saver when you build web applications.
With OpenXML, you can create all the documents in memory. And you can let the end user to download it. So, you don’t have to use physical temporary locations as a storage.
Here is the application;
Click Open File, select your file. Right Click -> Reflect Code
Then you will see this window;
You can see the generated C# Codes of your document at the right side of the window.
When you examine this code, you will see some patterns which are creating the entire document row by row. (or paragraph by paragraph)
The last thing that you need is, analyse the code, and evolve it for your own purposes.
How to use OpenXML to create MS documents on the memory without any physical location, in next post…