TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Naresh yadav
NA
29
0
problem with my Microsoft word 2007 com object .
Mar 11 2010 2:06 AM
1) i have made a reference to microsoft.Office.Interop.Word
2) included a namespace has "include Word=microsoft.Office.Interop.Word" and given Word as alias to the above namespace
3) Word.Application WordApp = new Word.Application();
Word.Document WordDoc = null;
created an instance for Application and Document class
4) object missing =System.Reflection.Missing.Value
5)WordDoc = WordApp.Documents.Open(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);
here i given valid path for the file to be opened. but still my WordDoc gives me null vaule. (i have cross checked my filepath twice)
kindly help me where i'm going wrong.
thanks in advance.
Reply
Answers (
1
)
Gridview powered website paging function doesn't function with inserted gridview row
how i get the value of a textbox in a child page and pass it to a label in a parent page??