Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to open exisiting word document from asp.net
Rakesh Kalluri
Oct 9 2012 10:26 PM
2.1k
Reply
I am using VS2008 and MS office word 2007. Initially I was getting error at following code :
mw.Application wrdApp = new mw.Application();
To solve that problem, I used DCOMCNFG. I have added ASPNET user and I have set the identity to Lounching user. Now that problem is solved.
Here is main problem, when I use the following statement, I am trying to open the document. I do not get any exception as well as there isn't anything in event log. but it doesn't open the file. It just hangs. I don't know what to do and what is worng.
mw.Document wrdDoc = wrdDocs.Open(ref wdFile,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing);
Please help.
Thanks and Regards,
RAKESH
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to Open new tab when we click on LinkButton
send SMS Using asp.net website?