Issue 121408 - Hyperlink to an Excel Spreadsheet
Summary: Hyperlink to an Excel Spreadsheet
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: editing (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 14:57 UTC by Georg
Modified: 2013-07-09 09:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Hyperlink example (8.44 KB, application/vnd.oasis.opendocument.spreadsheet)
2012-11-26 14:57 UTC, Georg
no flags Details
excel source file (6.50 KB, application/vnd.ms-excel)
2012-11-26 14:57 UTC, Georg
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Georg 2012-11-26 14:57:06 UTC
Created attachment 79952 [details]
Hyperlink example

Hi,

I found a bug that is already solved in LibO, but in AOO you will get an error.
Steps:

1. create an Excel spreadsheet with one or two tables
2. open an empty calc spreadsheet
3. go to cell A1 and open the Hyperlink dialog (alternative: you can use the Hyperlink function, too)
4. create a link to the previously created excel document and one of the table inside, i.e. "file:///C:/tmp/test.xls#Tabelle2" 
5. save the hyperlink
6. Now click on the hyperlink in the calc document. You will get an error, that the document can not be found.

If you do the same with a Calc document, everything is fine. My customer has several documents with mutiple of such links, so that this is a big issue for him.

Would be great, if someone could help by this!

Regards
Comment 1 Georg 2012-11-26 14:57:45 UTC
Created attachment 79953 [details]
excel source file
Comment 2 Luis Kantun 2012-12-01 15:58:58 UTC
(In reply to comment #1)
> Creado adjunto 79953  [detalles] 
> excel archivo de origen


Hello Georg, well you would have to verify your address when entering your hiprvinculo. since I've done the same example and if I carried the 2 tables when clicking on the hyperlink.
at first I threw the same error as you, but I found that it was because he was not agragando the # at the end of the address.

I hope I helped found.
regards
Comment 3 Georg 2013-01-03 17:15:12 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Creado adjunto 79953  [detalles] 
> > excel archivo de origen
> 
> 
> Hello Georg, well you would have to verify your address when entering your
> hiprvinculo. since I've done the same example and if I carried the 2 tables
> when clicking on the hyperlink.
> at first I threw the same error as you, but I found that it was because he
> was not agragando the # at the end of the address.
> 
> I hope I helped found.
> regards

Sorry I don't know what you mean, the hyperlink looks like 
file:///S:/temp/Test.xls#Table1 and the # is needed to select the Table1.

I'll get sill the error.

Regards 
Georg
Comment 4 jsc 2013-01-15 16:52:49 UTC
confirmed issue

I can reproduce the problem. From another spreadsheet via the hyperlink function it don't work.

When I open the link directly it works, for example

soffice file:///Users/jsc/Downloads/test.xls#Tabelle2
Comment 5 Andre 2013-06-27 06:53:55 UTC
A click on a hyperlink is eventually forwarded to XSystemShellExecute::execute().  On Windows this is implemented by the CSysShExec class in main/shell/source/win32/SysShExec.cxx.  In the case at hand the given URL is transformed by a call to ::osl::FileBase::getSystemPathFromFileURL() which removes the leading file:/// but leaves the trailing #Tabelle2.  The resulting file name is invalid because of the #Tabelle2 suffix and therefore can not be opened.

An experiment in which the file:///... URL was fed directly to the Windows ShellExecuteExW() function was basically successful: it starts Excel and shows the correct document but does not jump to the second table.  This last problem may be due to the fact that I tested this with an English localized Excel, which may not understand the German '#Tabelle2'.
Comment 6 Andre 2013-06-27 11:31:14 UTC
I can not reproduce this bug on Linux.

I also checked with LibreOffice on Windows.  It is true that a (Ctrl-)click on the hyperlink opens the references test.xls documnent and shows the right table.  But it does that with LibreOffice.  On my system .xls is associated with Excel.  Starting LibreOffice instead of Excel looks like an error.
Comment 7 jsc 2013-07-09 09:30:16 UTC
change prio to p3