Bug 47223 - Link from calc to writer with relative-path
Summary: Link from calc to writer with relative-path
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.3.4 release
Hardware: All All
: medium major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 01:26 UTC by globalsi
Modified: 2014-08-24 13:02 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description globalsi 2012-03-12 01:26:28 UTC
Hi,

It's not possible to create a DDE link from Calc to Writer with relative paths.
Comment 1 sasha.libreoffice 2012-06-01 01:07:57 UTC
Thanks for bugreport
Steps to reproduce:
0. Opens existing ods file in Calc, select something there and press Ctrl-C
1. Start Writer, press Ctrl-Shift-V, select "DDE link"
2. in Writer do Edit->Links. For example there is /home/s/file1.ods. Try variant file1.ods and ./file1.ods
Expected: it will work
Actually: complains that link can not be established

reproduced in 3.3.4 and 3.5.4 on Fedora 64 bit
IMHO problem was in 3.2.1

Workaround: use ~/../.. (tilda, used for user folder, .. used for parent folder), for example in my case /home/s/file1.ods may replaced to ~/../../home/s/file1.ods and it works correctly.
Comment 2 Václav Ovsík 2012-10-30 08:40:26 UTC
Hi,
FYI: I found a better workaround prepending URL prefix file: before relative path. So you can write
  file:../foobar.ods
instead of
  ../foobar.ods
(Googled from discussion under http://openoffice.blogs.com/openoffice/2006/06/pasting_openoff.html)
Regards
-- 
Zito
Comment 3 sasha.libreoffice 2012-10-30 11:06:19 UTC
Thanks for additional workaround. I will use it
Comment 4 Pierre C 2012-11-24 18:13:19 UTC
Yes workaround works fine, 

but a relative path isn't still generated with libo 3.6.4 (windows seven)
Comment 5 cébé 2012-12-27 14:42:22 UTC
Hi,

Same problem with 3.6.4 : I have to specify "file:".
Comment 6 cébé 2012-12-27 15:44:50 UTC
Doesn't work on 4b2 !
Comment 7 sasha.libreoffice 2012-12-28 05:39:49 UTC
@  cébé
Thanks for additional testing
Sorry, but "Version" is most old version of LO where bug is reproduced. Not current version. Changing back to 3.3.4 and platform to All
Comment 8 cébé 2013-02-02 17:26:03 UTC
Each time I try to make this file: link (replacing the absolute link), I have an error message. But if I click on "Refresh" (I don't know if it's Refresh : it's Actualiser in french), datas are refreshed.

Moreover, this trick doesn't work with internal link. As I want to use datas from calc document, I copy entire array from Calc to Writer with DDE paste.
After that, I "DDE copy" some data in the same Writer document to have my own layout (not an table !). In DDE links table, this kind of link is written as : __DdeLink__7337_1235083230. It's ok, it works. But, as usual, file reference is absolute and here, if I try file:, it doesn't work.
Comment 9 Pierre C 2013-11-16 11:15:27 UTC
This bug is still in 4.1 & 4.2 dev.

Nowadays, many peoples work in different places, with different computers. So having the ability to use relative path in all LO feature is a must have feature.

Of course workaround works fine, but we can't tell users to go into Edit/Links and modify all DDE path to be relative. This workaround is only for advanced users
Comment 10 Pierre C 2014-08-24 13:02:28 UTC
DDE Link from calc to writer are still not stored as relative links as it should be to conform with the option "store relative path FS"
LO 4.3.1.1


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.