Click here to Skip to main content
15,894,546 members
Home / Discussions / C#
   

C#

 
GeneralRe: Word Automation Pin
Dominic Godin19-Apr-04 22:06
Dominic Godin19-Apr-04 22:06 
GeneralRe: Word Automation Pin
Heath Stewart20-Apr-04 3:52
protectorHeath Stewart20-Apr-04 3:52 
GeneralRe: Word Automation Pin
Dominic Godin20-Apr-04 6:55
Dominic Godin20-Apr-04 6:55 
GeneralRe: Word Automation Pin
Heath Stewart20-Apr-04 8:31
protectorHeath Stewart20-Apr-04 8:31 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 1:37
Dominic Godin21-Apr-04 1:37 
GeneralRe: Word Automation Pin
Heath Stewart21-Apr-04 3:18
protectorHeath Stewart21-Apr-04 3:18 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 4:14
Dominic Godin21-Apr-04 4:14 
GeneralRe: Word Automation Pin
Heath Stewart21-Apr-04 6:22
protectorHeath Stewart21-Apr-04 6:22 
ComInitialize is called behind the scenes by the CLR, and you already have an instance of the WordBasic object so long as it isn't null. The fact that you're getting the IDispatch reference when you cast - for which the CLR performs a QueryInterface - shows that it supports automation, so I'm surprised that GetTypeInfo fails.

At this point, I would recommend going to the Word newsgroup (NNTP news server is msnews.microsoft.com) and seeing if there is another way to disable macros on startup.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 7:14
Dominic Godin21-Apr-04 7:14 
GeneralRe: Word Automation Pin
Dominic Godin22-Apr-04 0:54
Dominic Godin22-Apr-04 0:54 
GeneralRe: Word Automation Pin
Heath Stewart22-Apr-04 2:37
protectorHeath Stewart22-Apr-04 2:37 
Questionhow to get a list of computers on Local area network Pin
vutrunghieu16-Apr-04 0:55
vutrunghieu16-Apr-04 0:55 
AnswerRe: how to get a list of computers on Local area network Pin
Heath Stewart16-Apr-04 6:12
protectorHeath Stewart16-Apr-04 6:12 
GeneralRe: how to get a list of computers on Local area network Pin
vutrunghieu18-Apr-04 7:17
vutrunghieu18-Apr-04 7:17 
GeneralRe: how to get a list of computers on Local area network Pin
Heath Stewart19-Apr-04 2:13
protectorHeath Stewart19-Apr-04 2:13 
Generalweek numbers Pin
robmays16-Apr-04 0:02
robmays16-Apr-04 0:02 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 0:22
Stefan Troschuetz16-Apr-04 0:22 
GeneralRe: week numbers Pin
robmays16-Apr-04 0:25
robmays16-Apr-04 0:25 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 1:02
Stefan Troschuetz16-Apr-04 1:02 
GeneralRe: week numbers Pin
Colin Angus Mackay16-Apr-04 2:13
Colin Angus Mackay16-Apr-04 2:13 
GeneralRe: week numbers Pin
robmays16-Apr-04 2:23
robmays16-Apr-04 2:23 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 2:45
Stefan Troschuetz16-Apr-04 2:45 
GeneralRe: week numbers Pin
Colin Angus Mackay16-Apr-04 3:05
Colin Angus Mackay16-Apr-04 3:05 
GeneralRe: week numbers Pin
Bee Master16-Apr-04 3:06
Bee Master16-Apr-04 3:06 
GeneralRe: week numbers Pin
Stefan Troschuetz16-Apr-04 3:27
Stefan Troschuetz16-Apr-04 3:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.