Link to home
Create AccountLog in
Avatar of jackjohnson44
jackjohnson44

asked on

c# .net open word document

I am trying to open a word document through my .net application.  Here is the code, but there is a ton of parameters that it is expecting, and I don't know what to do.  Also the document is on our intranet.  I tried just opening it via internet explorer, but it didn't work.

            Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application();
            WordApp.Documents.Open("http://intranet/Checklist.dot",);
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of jackjohnson44
jackjohnson44

ASKER

thanks, but when I tried, it isn't letting me convert ref string to ref object with the file name.

What type should the filename be?
string fileName = "http://intranet/Checklist.dot";
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account