Get up to date with office development on .net platform with Somasegar’s post here

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);

3 Comments

  1. Pingback: JORDAN
  2. Pingback: TED
  3. Pingback: PAUL

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.