Link to home
Start Free TrialLog in
Avatar of manney_mcvicker
manney_mcvicker

asked on

Linking OLE Objects

We have linked an RTF file to a Report header.
On our development machines .RTF files are associated with WordPad.exe.

We have tried to install the report on a client that has had Microsoft Word installed and the file association has been replaced and was associated with WinWord.exe.  When we try to run the report on the client we get the following errors

1) Some links could not be updated because their sources are presently unavailable.
2) Failed to launch server application when i try to open source

I have tried deleting the file association to WINWORD and re-associationg it with WordPad but to no avail.
 

Helllllpppppp!!
Avatar of jrmn
jrmn

Hi manney_mcvicker,

The reason why you got the "Some links could not be updated because their sources are presently unavailable." error message is that with OLE Object, upon running the report (RPT), it will look for the RTF file associated to it at the directory where it is located when you created the report. Say if you inserted an OLE object (in your case an RTF file) at designed time located at "c:\temp\oleobjects\My.RTF",  when the report runs, it will look for the RTF file on this directory. If it can't locate the file and the directory, the error message mentioned above pops up.
On the client machine, try making a directory the same as in your development machine and copy the RTF file on it. This will solve your problem.
I don't know if there's a property we can set to specify the path of the OLE object at runtime but the thing I mentioned above will work fine for now.

Best of luck,
jrmn

ASKER CERTIFIED SOLUTION
Avatar of SJWood
SJWood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manney_mcvicker

ASKER

Thanks guys,

SJWood, that worked a treat! Have you had this problem before or something ?? Cheers anyways

Manney