DZone Forums
Go Back   DZone Forums > Community > Languages & Frameworks > Java
Reload this Page Open RTF with RCP application
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Sep 2008
Default 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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java open source profiler? emaayan Java 0 12-22-2008 09:07 AM
Open source java web server kangaroo_egg Java 0 08-04-2008 09:35 PM
RCP - Open another application on a button click satya.muthu Eclipse 0 05-07-2008 12:13 PM
Application fails on Mac - can't load application class kam_83 Eclipse 0 05-02-2008 11:21 AM
java.io: open tunnel failure thorne_ Java 0 03-04-2008 11:11 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com