Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INVALID PAGE FAULT

Status
Not open for further replies.

Phi1Smith

Programmer
Jun 5, 2001
33
0
0
GB
Hi
I have a program that is a front end for a database. It can run MSWord templates as reports. My problem is that I have recently moved from a Win98 machine to a Windows 2000, the EXE that was compiled on Win98 works OK on all windows platforms I have access to, but the EXE compiled on Windows2000 causes an Invalid Page Fault as this line of code is called

Set oWordActiveDoc = oWord.Documents.Add(Template:=sDoc, NewTemplate:=False)

when run on Win98 platform, but is OK on Windows2000.
I have error handling set up but the “Invalid Page Fault” is coming up before the error handler.
Could anyone please point me in the right direction.

Many Thanks

Phil
 
Have you installed DCOM98? If not, you should (on the 98 machine)

 
mmilan
Yes to DCOM98 and I just re-installed it but this didn't solve the problem.:-(

Thanks for trying

Phil
 
Sounds like the problem is coming from the Word object itself...

Sorry I can't be of further help.
 
mmilan
Problem is with Project Properties referencing MSWord8.olb in old version of program and in the new version it references MSWord9.olb. I changed it to reference MSWord8.olb but now it only works on win98 platforms.

I'll add this to the installation and try on windows2000 again

Many Thanks

Phil :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top