Monday, 7 December 2015

How to open Word Document Through Code in x++

static void OpenWordThroughCode()
{
  COM   wordApp;
  COM   wordDocuments;
  wordApp = new COM("word.application");
  wordDocuments = wordApp.Documents();

  wordDocuments.Open(@"C:\Users\rajendra.c\Desktop\Table Properties.docx");
  wordApp.visible(true);

}

No comments:

Post a Comment