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