471,356 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Help!! Problem instantiating WORD object using C#.NET

Hi experts,

I am trying to open the content of a WORD file from C#.NET which resides in
the REMOTE SERVER, however I get an error:
"System.Runtime.InteropServices.COMException: Server execution failed"
when declaring new Word.ApplicationClass().

string fileName = this.btnWorkOrder1.Value;
object readOnly = false;
object isVisible = false;
object saveChanges = false;
object missing = System.Reflection.Missing.Value;
object dynamic = 2;

//error here:
Word.ApplicationClass oWordApp = new Word.ApplicationClass();

Word.Document oWordDoc = oWordApp.Documents.Open(ref file, ref missing, ref
readOnly, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing,
ref missing, ref missing, ref isVisible);
Does anybody know how to solve it? Please help!!!

Thanks alot!!!
Handy Mulia

Jul 21 '05 #1
0 1027

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ronny Sigo | last post: by
reply views Thread by Balakrsihna | last post: by
1 post views Thread by Handy Mulia | last post: by
3 posts views Thread by Martin Austin | last post: by
1 post views Thread by Gomathi | last post: by
reply views Thread by Ronald S. Cook | last post: by
reply views Thread by Ronald S. Cook | last post: by
reply views Thread by Pramod Elig | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.