How to learn and do Office Interop programming?http://forums.asp.net/t/1806097.aspx/1?How+to+learn+and+do+Office+Interop+programming+Wed, 23 May 2012 07:39:45 -040018060974991134http://forums.asp.net/p/1806097/4991134.aspx/1?How+to+learn+and+do+Office+Interop+programming+How to learn and do Office Interop programming? <p>Hi!</p> <p>My Line manager has assigned me a new project. It is about linking data from sql server to word documents (eg. employee name from sql server to salary certificate document). She told me to use Office Interop. But I have no knowledge about. How to learn and do the above project. Could you help me by providing tips, examples,...?</p> <p>Thanks.</p> 2012-05-22T03:50:15-04:004991149http://forums.asp.net/p/1806097/4991149.aspx/1?Re+How+to+learn+and+do+Office+Interop+programming+Re: How to learn and do Office Interop programming? <p>make a macro in word that does the job.<br> then, in VS, add a reference to Office and re-make the macro in your preffered language.</p> 2012-05-22T04:07:01-04:004991169http://forums.asp.net/p/1806097/4991169.aspx/1?Re+How+to+learn+and+do+Office+Interop+programming+Re: How to learn and do Office Interop programming? <p>I cannot understand you. Could you explain it or at least provide me with links to learn it?</p> <p>Thanks</p> 2012-05-22T04:20:58-04:004993316http://forums.asp.net/p/1806097/4993316.aspx/1?Re+How+to+learn+and+do+Office+Interop+programming+Re: How to learn and do Office Interop programming? <p>javedhakim,</p> <p>Creation and manipulation of documents using Office COM (Ofice automation)<a href="http://support.microsoft.com/kb/257757"> is not recommended</a>, especially in ASP.NET applications. Although Office COM APIs allows for easy document manipulation, it makes an apllication unstable, unreliable and with Word processes hanged. It must be avoided at all costs and instead <a href="http://www.codeproject.com/Articles/36694/Creation-of-a-Word-2007-document-using-the-Open-XM"> Open XML SDK</a> should be employed in case you want to handcraft the solution.</p> <p>Open XML SDK requires a &nbsp;lot of work and knowledge to create anything usefull and the solutions are many times unstable and error prone. There are several 3rd party libraries that have similar APIs to Office COM which don't pose the same threaths and weaknesses. You can also check the <a href="http://www.docentric.com">Docentric toolkit</a> which uses template-driven aproach for MS Word document generation. It's a perfect solution for your scenario because it will alow you to create templates by using MS Word application and then process them in your application by using the report engine to generate final documents with mostly only several lines of code.</p> 2012-05-23T07:39:45-04:00