Office Development with VS 2010

Get up to date with office development on .net platform with Somasegar’s post <a href=”http://blogs.msdn.com/somasegar/archive/2009/01/10/office-client-developer-enhancements-with-vs-2010.aspx”>here</a>


My personal favourite is simplification of .net’s integration with COM’s OM.


As per the example posted in Somasegar’s blog.


Instead of doing the following


object fileName = “Test.docx”;
object missing  = System.Reflection.Missing.Value;
doc.SaveAs(ref fileName,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing);


You can do with VS 2010


object fileName = “Test.docx”;
doc.SaveAs(fileName);

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>