Click here to Skip to main content
15,903,523 members
Home / Discussions / COM
   

COM

 
AnswerRe: problem in executing DTS Pin
Dave Herren23-May-07 13:50
Dave Herren23-May-07 13:50 
QuestionCOM + C# Pin
Don Rolando21-May-07 9:58
Don Rolando21-May-07 9:58 
AnswerRe: COM + C# Pin
sthotakura21-May-07 10:15
sthotakura21-May-07 10:15 
QuestionHow to retain the values Pin
jannathali21-May-07 1:59
jannathali21-May-07 1:59 
AnswerRe: How to retain the values Pin
sthotakura21-May-07 10:21
sthotakura21-May-07 10:21 
AnswerRe: How to retain the values Pin
CPallini23-May-07 0:41
mveCPallini23-May-07 0:41 
QuestionRegarding Adding a Decoder Filter Pin
Raja Bose C Leo20-May-07 21:53
Raja Bose C Leo20-May-07 21:53 
QuestionWord.Documents.Open( ) not working at Windows 2000 Pin
cindy02320-May-07 17:08
cindy02320-May-07 17:08 
Dear all,

Good Day!

I’m writing a windows service(Login with local system) that open a Ms Word document, do some modification and then save the document to a new doc file. I’m using the Microsoft Word 11.0 Object Library (Office 2003) via interlop. It works fine in my XP development PC(VS 2003 , framework v1.1.4322).

However, when deploy it to Windows 2000 Server which have Office 97 installed, the following error message encountered when the system perform Word.Document.Open() function.

'System.NullReferenceException: Object reference not set to an instance of an object.
at Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
at GCMS.RWrite.WriteReminder(RObject oRem)'

The following is my code snipet:

Dim oMainDoc As Word.Document
Dim oApp As Word.Application

If IsNothing(oApp) Then
oApp = New Word.Application
End If

'Error encounter at this line
oMainDoc = oApp.Documents.Open("c:\Test.Doc", isible:=False, OpenAndRepair:=True, Revert:=True, ReadOnly:=False)

The following file are inside the deployment folder.
MSWORD.OLB
office.dll
stdole.dll

Will the MSWORD.OLB (version office 2003) conflict with the version office 97 at the deployment PC? Can anybody give me some adviseConfused | :confused:

I have done some searching but still not able to find the solution D'Oh! | :doh: Some have suggested to use DCOMCNFG to fix the user profile problem but since the windows service is login as “System”, it shouldn’t have this problem right?


CCN
QuestionUsing same COM instance with multiple client ? Pin
achainard18-May-07 5:57
achainard18-May-07 5:57 
AnswerRe: Using same COM instance with multiple client ? Pin
CPallini18-May-07 10:20
mveCPallini18-May-07 10:20 
QuestionRe: Using same COM instance with multiple client ? [modified] Pin
achainard19-May-07 5:03
achainard19-May-07 5:03 
AnswerRe: Using same COM instance with multiple client ? Pin
Flame11325-May-07 15:03
Flame11325-May-07 15:03 
GeneralRe: Using same COM instance with multiple client ? Pin
achainard25-May-07 20:22
achainard25-May-07 20:22 
Questioncan i customize webbrowser in my own ocx? [modified] Pin
XPointer18-May-07 0:15
XPointer18-May-07 0:15 
AnswerRe: can i customize webbrowser in my own ocx? Pin
prasad_som18-May-07 0:53
prasad_som18-May-07 0:53 
GeneralRe: can i customize webbrowser in my own ocx? Pin
XPointer18-May-07 1:00
XPointer18-May-07 1:00 
AnswerRe: can i customize webbrowser in my own ocx? Pin
prasad_som18-May-07 2:07
prasad_som18-May-07 2:07 
GeneralRe: can i customize webbrowser in my own ocx? Pin
XPointer18-May-07 2:14
XPointer18-May-07 2:14 
AnswerRe: can i customize webbrowser in my own ocx? Pin
prasad_som18-May-07 2:19
prasad_som18-May-07 2:19 
GeneralRe: can i customize webbrowser in my own ocx? Pin
XPointer18-May-07 2:34
XPointer18-May-07 2:34 
AnswerRe: can i customize webbrowser in my own ocx? Pin
prasad_som18-May-07 2:43
prasad_som18-May-07 2:43 
GeneralRe: can i customize webbrowser in my own ocx? Pin
XPointer18-May-07 3:24
XPointer18-May-07 3:24 
QuestionRe: can i customize webbrowser in my own ocx? Pin
XPointer18-May-07 1:26
XPointer18-May-07 1:26 
QuestionImplementing more than one interfaces in same coclass Pin
georgekjolly17-May-07 22:29
georgekjolly17-May-07 22:29 
AnswerRe: Implementing more than one interfaces in same coclass Pin
Roger Stoltz18-May-07 2:09
Roger Stoltz18-May-07 2:09 

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.