Insufficient memory problem (5097)

S

stefan

Hi,
need help from experts!
Problem:
I have a VB program which creates on instance of Word:

Dim objWord as New Word.Application
Set objWord = CreateObject("Word.Application")
objWord.Documents.open(sFilename)

This program runs at system startup via a service
under "local systemaccount" user.

While executing the line "objWord.Documents.open
(sFilename)" I get the error "5097: Insufficient
memory...Save the document now!"

Running the program while I am logged in, there is no
problem.

We are using Windows2000 Professional (English) with
Office 2000 SP3 (English).

Any tips/hints are welcome!!! Could not find any
reasonable help at Microsoft Knowledge Base :-((

Thanks,
Stefan
 
W

Word Heretic

G'day "stefan" <[email protected]>,

word needs a logged on user account with a fully populated hive,
including user details, to be able to function. It simply doesn't work
in a server context like you describe.



Hi,
need help from experts!
Problem:
I have a VB program which creates on instance of Word:

Dim objWord as New Word.Application
Set objWord = CreateObject("Word.Application")
objWord.Documents.open(sFilename)

This program runs at system startup via a service
under "local systemaccount" user.

While executing the line "objWord.Documents.open
(sFilename)" I get the error "5097: Insufficient
memory...Save the document now!"

Running the program while I am logged in, there is no
problem.

We are using Windows2000 Professional (English) with
Office 2000 SP3 (English).

Any tips/hints are welcome!!! Could not find any
reasonable help at Microsoft Knowledge Base :-((

Thanks,
Stefan

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 

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