Issue 121412

Summary: Exporting from OO to PPT breaks hyperlinks to other slides within the document.
Product: Impress Reporter: tigger6333
Component: save-exportAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact: Yakoob Chaudhry <chaudhry244>
Severity: Major    
Priority: P3 CC: Gisela.Mendez, issues, lilia.urmazova, steffbio
Version: 3.4.1   
Target Milestone: ---   
Hardware: Mac   
OS: OS X 10.8   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Screenshot of the warning which tells us that formatting and content may not be saved correctly
none
Example odp file none

Description tigger6333 2012-11-27 04:29:32 UTC
When exporting an OO file to PPT the hyperlinks to other slides within the document are broken because they are incorrectly formatted. They are missing the preceding number of the anchor. eg instead of "12. Slide 12" the anchor shows just "Slide 12"
Comment 1 Lilia Urmazova 2013-06-15 04:44:48 UTC
We have analysed the defect and tried to reproduce it.

OS: Windows XP SP 3. 
    Windows 7 Ultimate SP 1.

Precondition: 
New clear presentation created in Impress. 
No effects are added to the slides. 
Presentation should contain at least 2 slides.
We replicated the defect with the presentation with no slide effects. 

Steps to reproduce: 
●	In the presentation (on the first slide), add a link within the document (leading to the second slide)
●	Save the presentation in *.ppt file (File -> Save as... -> choose *.ppt format) 
Open the presentation in PowerPoint (we checked at PowerPoint 2003 (build 11.5529.8172)
●	Click to the link on the first slide.
●	Target slide is not shown.

Expected result: Target slide should be shown on clicking the link (like in OO).

Additional comments:
- The link is recognized by PP like regular text (for example, by right-clicking on that we see the regular text pop-up menu). 
- Number of anchor is shown now normally (like #Slide 2)
Comment 2 steffbio 2014-06-07 18:18:36 UTC
Created attachment 83517 [details]
Screenshot of the warning which tells us that formatting and content may not be saved correctly
Comment 3 steffbio 2014-06-07 18:20:51 UTC
Created attachment 83518 [details]
Example odp file
Comment 4 steffbio 2014-06-07 18:24:46 UTC
I could reproduce the bug with OOo 4.1.0

OS: Windows 7
Powerpoint version: Powerpoint 2007

Steps to reproduce:
See comment from Lilia Urmazova 2013-06-15 04:44:48 UTC (https://issues.apache.org/ooo/show_bug.cgi?id=121412#c1)

Additional comments:
- If we save the slide in OO as a ppt file, then a warning appears saying that "This document may contain formatting or content that cannot be saved in the Microsoft PowerPoint 97/2000/XP template file format..." (Example odp file)
- If you create a hyperlink in an odt file, which links to another heading, then this link works after the file is stored in a *.doc file
Comment 5 Gisela 2017-11-23 20:33:39 UTC
Bug confirmed. I am able to recreate this bug successfully in OpenOffice version 4.1.4 and Powerpoint 2013/2016

Description:
======================
Hyperlinks created into OpenOffice, they are not working if presentation was saved with PPT extension.

Severity: 
======================
3

Environment:
======================
OS: Windows 10 version 1607
    Windows 7 Ultimate SP 1

Pre-requisites:
======================
- Have a OpenOffice presentation created with 2 or 3 slides

Steps:
======================
1.Create an empty presentation from OpenOffice
2.Add 2 or 3 slides minimally
3.Go to Slide 1 
4.Add a link into slide1 (e.g: linktoslide3) whose target will be slide 3 
  4.1 Remark the word to be linked for instance: remark linktoslide3
  4.2 Go to Insert>Hyperlink>Document>
  4.3 Click “Target in document” button
  4.4 Select Slide3 from dialog pop up
  4.5 Select apply button and close “Target in document” dialog
  4.6 Select apply button and close Hyperlink dialog
5.Select “F5” key
  5.1 Open office presentation will be enabled
6.Click over “linktoslide3”
7.Presentation will go directly to slide 3 skipping slide2
8.Click Esc key
9.Select “Save As” option
  9.1 Give a proper file name
  9.2 Select ppt extension
  9.3 Click save button
  9.4 A pop up dialog will be displayed indicating
“This document may contain formatting or content that cannot be saved in the Microsoft PowerPoint 97/2000/XP file format. Do you want to save the document in this format anyway?”
  9.5 Select Keep current format button
10. Go to the folder where presentation.ppt was stored
11. Open presentation.ppt
12. Mouse over “linktoslide3” and verify this is showed as link
13. Select “F5” key
14. PowerPoint presentation will be opened on slide1
15. Click over “linktoslide3”
You will see link is not working even if this is recognized as link

Workaround:
======================
Edit all links from PowerPoint presentation and to link to the respective target one by one

Current Result:
======================
PowerPoint target slide/link is not displayed after clicking any source link as long as presentation file was stored with PPT extension from OpenOffice 

Expected Result:
======================
The respective target slide should be displayed after clicking any link even if presentation was created from OpenOffice with extension PPT and then opened from PowerPoint