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
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