C# application opening document Word 2007

G

GS80

Hi,

I have an application that uses the Excel, Word and Powerpoint object
models. Upon trying to launch this from a SQL job i encountered a number of
exception errors which i managed to get sorted by chnaging the security
configuration in the DCOM configuration add in.
Strangely, when doing this there didn't appear to be any entries for office
2007 in the DCOMCNFG, should this be the case or does Office 2007 add entries?

Anyway, the com exception errors ceased but i now encounter a problem where
part of my application attempts to open a file in word using
wordApp.Document.Open(....). The application seems to hang at this point and
gets no further. No more exception errors are raised either.

Has anyone encountered this ior something similar beofre, any help that can
be provided is greatly recieved.

Thanks in advance,

G
 
D

Doug Robbins - Word MVP

It should be

wordApp.Documents.Open(....).

even though you are only opening 1 document.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top