|
Open RTF with RCP application -
09-04-2008, 06:43 AM
Hello
I have made a little application which uses the OleClientSite object.
I use it to open a RTF file.
My RTF file has a reference to an image on it: ...{INCLUDEPICTURE "img/logo.gif"...
When I open this file directly using MS Word, everything is ok. The image in the document is displayed.
However, when I use my Java Application, the file is displayed but not the image on it. It seems that the image cannot be found.
I modified the RTF file to have the absolute path to the image: ... {INCLUDEPICTURE "d:/img/logo.gif"...
Then I opened the RTF file with my Java application. The document was displayed and also the image on it.
The problem seems to be that when the image is described in the RTF file with a relative path, the image cannot be found.
How can I resolve this problem?
Thanks
Best regards.
|