If there is any hyperlink within a Object text, it is not exported to word as a Hyperlink. Any reasons?
I have a Object text in DOORS which contains a mix of Text and Hyperlink. The Hyperlink in this Object is exported as normal text as the other text in this Object.
e.g. If the Object has the following text
There is a Hyperlink Link: http://www.google.com here in this text.
It is exported in RPE as
There is a Hyperlink www.google.com here in this text.
Any suggestions how to handle this problem?
Thanks & Regards
This topic has been locked.
13 replies Latest Post - 2012-10-30T18:15:47Z by gdc4s
Pinned topic Hyperlink
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-10-30T18:15:47Z at 2012-10-30T18:15:47Z by gdc4s
SystemAdmin 110000D4XK1299 PostsACCEPTED ANSWER
Re: Hyperlink2009-07-08T11:05:16Z in response to Irfan_JamalHi Irfan,
This kind of hyperlinks within the specified context are not received as hyperlink data by RPE. Although, you can run the Word macro from here : http://www.ibm.com/developerworks/wikis/display/rpe/Find+links, that identifies this hyperlink texts. On Pdf, this texts are recognized as hyperlinks by default.
Re: Hyperlink2009-07-14T07:11:14Z in response to SystemAdminHello Milan,
I tried the macro from the link which you have mentioned. The macro has some problems.
Please find attached the word document (a sample generated by RPE). It has 2 links. When I run the rpe macro or resolveLinks macro, I get a runtime error "value out of range".
Could you please help me in resolving this?
- The text in the attached file is exported in table format
- The link is at the begining of the 3rd line
- If I remove the link2, resolveLinks runs successfully for Link 1
- All links are resolved when exported as a paragraph and not as a table.
Thanks & Regards
Re: Hyperlink2009-07-14T08:08:24Z in response to Irfan_Jamalhello
On further analysing the issue, I found out that
- the links are not resolved if the text is in table format and the link is present other than the first row
- The links in any row other than the first row are resolved only if the link is appearing first in the cell (i.e. no text before https:// or http://)
- The links in the first row are resolved irrespective of where they are present.
I see that the macro resolveLinks adds a few delimiters to the collection. I feel that the delimiter for table/row/cell should also be added here so that the macro recogonizes it.
Any idea what are the delimiters for table/row/cell?
SystemAdmin 110000D4XK1299 Posts
Re: Hyperlink2009-08-12T10:45:17Z in response to Irfan_JamalHey Irfan,
I have updated the macro on the wiki page here: https://www.ibm.com/developerworks/wikis/display/rpe/Find+links
The problem with the original macro was caused by how selection works in Word tables. if you try to select from one point in the cell all the content till the end of the cell, MS Word will actually select the entire content of the cell. You can reproduce this manually also. This caused the macro to report the end of the links before there start hence the error.
Please try the new macro and let me know if the problem is solved.
Re: Hyperlink2009-08-13T10:17:17Z in response to Dragos.CojocariHello Dragos,
This happens when there is already a table somewhere in the document and one column of the table has already some Hyperlinks.
When, I delete this table, your macro runs fine.
If you want a document, I need to prepare one for you. Since what is exported for me is all internal data which I cannot share.
Thanks & Regards
Re: Hyperlink2009-09-11T08:21:19Z in response to Irfan_JamalHi Irfan,
see attached the changed document with and updated macro. The new macro is taking into account some new conditions. While the current macro covers many new scenarios it might not cover all. The main problem is the way Word selects various texts based on their context: trying to select the last word in a cell will select the entire cell in some scenarios.
gdc4s 060001JC1417 PostsACCEPTED ANSWER
Re: Hyperlink2012-10-30T18:15:47Z in response to Irfan_JamalI am using RPE 22.214.171.124 to generate a Word document from a Rhapsody 126.96.36.199 model.
In a description field of a model element there is a mix of text and hyperlink.
When I generate the Word document the hyperlinks resolves to text and does not get expanded.
(This is the text that appears in the Description field of the 4-cylinder engine block)
The 4-cylinder specialization of the Engine component has two performance graphs, one for Torque and one for Horsepower.
_C:\Users\p56341\Desktop\RPE support\SE Common Model\SSDD Auto-Gen Minutes 2012_10_11.docx_
(Additional descriptive text here, to demonstrate that a linked diagram may appear anywhere within a Description)
I am calling the latest version of the fixLinks macro:
but that does not seem to work.
Any help would be appreciated.
Thanks in advance