Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em>Office Interop is an option (slow as you already discovered) but beware: it is <strong>not supported</strong> by MS in server-like scenarios (like ASP.NET or Windows Service or similar) - see <a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2</a> !</em></p> <p>Usually some library is used to achieve what you want:<br/></p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/bb448854%28office.14%29.aspx" rel="nofollow">MS provides the OpenXML SDK V 2.0</a> (free, supports only DOCX)</li> <li><a href="http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx" rel="nofollow">Aspose.Words</a> (commercial, supports DOC and DOCX)</li> </ul> <p>The library approach is usually very fast, usable with multi-threading, usable in server-scenarios and comes with lots of additional possibilities...</p> <p>As for your <em>Second</em> point: with Interop you need to call <a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.applicationclass.quit%28v=office.14%29.aspx" rel="nofollow"><code>Quit</code></a> to close the application... although sometimes you need to call <code>System.Runtime.InteropServices.Marshal.FinalReleaseComObject</code> too (which can have some undesired side-effects see <a href="http://blogs.msdn.com/b/yvesdolc/archive/2004/04/17/115379.aspx" rel="nofollow">http://blogs.msdn.com/b/yvesdolc/archive/2004/04/17/115379.aspx</a>)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload