
VB/Crystal Reports/MS Word/OLE problem
Hi All,
I'm writing an application in VB using the crystal32 OCX to print
some reports. I've successfully used Crystal Reports in VB
applications
before, but this time I'm running into a few problems. I'm including
an MS Word document on my report (using Insert -> OLE Object) and then
overlaying some database fields (from an Access database) over the
top.
This all seems to work fine when I do a preview from the Crystal
Reports designer or when running the application on my development
machine. However I was a little concerned that my application would
ONLY print reports properly on a machine that had MS Word installed
on it (due to the OLE link in the report). So I got a machine that
had only just had Win95 installed on it (no MS Word) and ran my
application setup on this new machine.
The setup files were created using the Visual Basic Application Setup
Wizard and had successfully worked on several other development
machines.
Unfortunately, whenever my application tries to print a report on this
new machine, I get an error from the crystal reports control saying
"Can not initialize OLE". I don't know whether this has anything to do
with the fact that Word is not installed on this machine... I suspect
that this is not an issue as I've tried printing the same report with
the MS Word object deleted from it, and have gotten the same message.
The only thing I can think of is that maybe all the necessary OLE DLLs
have not been installed by the setup program, but then again these
should all be automatically included by the VB Setup Wizard!
Do you have ANY idea what might be causing this problem? Any help
would be greatly appreciated. Maybe someone even has a list of the
DLLs
needed by the crystal reports OCX...
Thanks in advance,
Martin.