Apache OpenOffice (AOO) Bugzilla – Issue 19655
wrong link in MSOffice master document
Last modified: 2017-05-20 11:20:10 UTC
Opening a MSOffice97 master document with OpenOffice links to other (dependent) files in the same directory do not works because a #masterFileName is appended at the end.
Sorry, let me correct the above notice: what is added at the end is, in fact, the bookmark in the referred document but the problem is that it seems to be added to the file name since the error is 'file fileName.doc#referenceName not found!' And I am not sure if the reference should appear under bookmarks and not under references. Thanks. Dario
reassigned to mru can you please take a look at this issue?
Dario, please attach an exaple file, which shows the problem you describe (or give a detailed description, how to insert such a link in MS Word). At the moment, I cannot imagin what kind of link you are talking about. You can also send the file directly (mru@openoffice.org), for the case it contains confidential data. Feel free to reopen this issue when you've done. Thanks for supporting us!
Ok, I sent example docs to mru@openoffice.org. I verified that while the document works fine with MSWord it has the problem with OpenOffice. Dario
MRU->OS: the imported hyperlink looks good. But it can't find the referred .doc file when the link also has a bookmark "#bookmarkname" appended. Without the bookmark it works. Also when the hyperlink refers to an .sxw including a bookmarkname. I'll attach a short case without the confidential content.
Created attachment 9600 [details] Source file with Hyperlink
Created attachment 9601 [details] Destination file with Bookmark
Everything in OOo is as it is in Word. The problem here is that the URL points to a non-OOo document and a Windows call is used to load the document. This interface doesn't allow a URL scheme containing a bookmark (which is not a valid URL anyway). An equivalent hyperlink in OOo pointing to an OOo document including a bookmark works the same way as it works inside of Word. os->mba: The bookmark part of the URL should be cut off when using a Windows API (as already discussed).
As long as there are some more important issues, this is re-targeted to OO 2.0.
retargetted due to heavy workload
->hbrinkm
The solution here is simple. It would take just a few lines of code to fix it. When you already have opened a .doc file in OpenOffice.org, you would want the next .doc file to be opened in OpenOffice.org also. Don't let OpenOffice.org give the url to a .doc file to the OS as long as OpenOffice.org can handle it self. It would be like opening a html file in firefox, even though IE is the standard html browser, and when you click on a link, firefox opens the html file in IE.
MRU->knobo: if so, feel free to attach a patch proposal to this issue. We than will change the target to an earlier point of time and implement your patch. Thanks!
Reset assigne to the default "issues@openoffice.apache.org".