![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Word hyperlink to bookmark during export Topic Summary: Created On: 19-Jun-2007 22:03 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm trying to set up an export function to create an MS Word hyperlink to a bookmark. I've figured out the bookmark thing from past forum discussions, but can't figure out the hyperlink thing. Is this possible? I'm trying to do it by modifying the rich text directly, e.g. to take the text "Hello this is me" and set the word "this" as a hyperlink to a bookmark titled "MyBookmark", I'm trying: |
|
![]() |
|
![]() |
|
Last call - anyone? I was hoping.
|
|
![]() |
|
![]() |
|
Hi John,
not an easy solution to your problem, but you could use WEXP for your export to Word. It supports the creation of bookmarks in the exported document and the creation of hyperlinks to the bookmarks. Regards, Peter Edited: 27-Jun-2007 at 09:35 by Peter Albert |
|
![]() |
|
![]() |
|
Just use Word's hyperlink object. Without checking I think you need to add one of these objects to a range/ selection object then load the "address" and "TextToDisplay" properties using OLE automation - which shouldn't be to difficult for you as you are clearly playing with it already. The bookmark is just narrowing down the reference and information on this should be reachable from the help on the hyperlink object within word. If memory serves I think its just a colon followed by the bookmark name appended to the address property.
------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
Peter - I've seen mention of WEXP, but not sure exactly what it is. I don't seen any reference to it in the DOORS help or the Telelogic website. Can you provide any info? |
|
![]() |
|
![]() |
|
Richard -
OK you just went way over my head on that. I'm not familiar with OLE automation, or with what a range/selection object is. Can I get some help on what those are, or perhaps maybe just more explicit steps and/or dxl code? Thanks. |
|
![]() |
|
![]() |
|
Ok. I may have misread your question. The following is a link to a bookmark called fred in a document called DOORS 8 Test Matrix.doc. Clicking on it opens the document and takes you to the bookmark in it. Thats what you want to do isn't it?
<file:///J:\POOL\Doorsdev\rmgworkingarea\DOORS 82 Testing\DOORS 8 Test Matrix.doc#Fred> P.S. Why doesn't the DOORS external links thing have a dialog where you can browse to a document and then to a bookmark within it. This has been possible for ages, My create Hyperlink does this and is one of my simplest but most popular tools. ------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
That's not really what I want. I'd like to set it up such that both the bookmark *and* the hyperlink are in the output exported Word document. I believe the method you describe will work to set up a link from within DOORS to a Word document, but this outgoing link isn't reflected in the exported document. Thus someone who doesn't have DOORS (most users of the output requirements document) can't use it. |
|
![]() |
|
![]() |
|
Post process the export of the document with a macro something like in the attached code. Also note that an rtf export of a doors hyperlink often autocorrects it to a hyperlink Word understands the macro is probably neater though.
------------------------- Regards, Richard Good |
|
![]() |
|
![]() |
|
Wow - I didn't think of doing post-processing in a Word macro - that's a good idea. I won't have time to try it for a few days, but will soon and post how it works out...
Thanks. |
|
![]() |
|
![]() |
|
quote: John, WEXP is an enhanced DOORS-to-Word Exporter, it basically consists of a set of DXL routines. DOORS and MS Word are linked through additional attributes on the DOORS side and bookmarks in a Word template file. The bookmarks control how exported objects should look like, and with the attributes you can select which style is to be used for each object. There are other attributes on where to put the content in the file, others for the creation of footnotes and even others for the creation of bookmarks in the exported file. And then there is a special syntax to be put in the Object Text for the creation of hyperlinks to those user-defined bookmarks. Once set-up, all runs smoothly in my experience, but you need significant time and effort to get there, because you need some time in order to learn about the subtle interaction between the DOORS module to be exported, WEXP itself, and the Word template. WEXP itself should be available through your local Telelogic representative. As far as I know, it was once developed by Jeremy Dick, who was also working on the multitude of kitchen scripts. I think he left Telelogic, but they still give it away on request. The drawback is that there is little further improvement (although through the time I am reading this newsgroup I think I saw a slight increase in version number), and, more important, there is literally no support through Telelogic. Which is easy to understand given that there is a Telelogic product called DocExpress. Regards, Peter |
|
![]() |
|
![]() |
|
quote: So I tried the post-process macro thing. I think it's the way to go, but can't figure out how to make it do what I need. The macro snipped you attached inserts a link to the current document - what I need though is to transform the text from plain text into a link to a bookmark within the same document. |
|
![]() |
|
![]() |
|
Hi John,
first, yes, WEXP is tied to the WEXP exporter, you can't use the WEXP Attributes with the standard Word Exporter. However, you said you want to / must stay with the latter, therefore I modified a Visual Basic script which I posted here recently. It was originally written to decrease the font size of text between two user-defined strings, but it was easy to modify it to create the Hyperlinks to bookmarks. However, it requires a slightly different output preparation: You now export things to look like: "LinkTo: ABCD" This makes it easy to find the start of the bookmark, but not the end of the bookmark. I'd therefore suggest to export the following: "Some text startLinkABCDendLink more text" If you then run the attached Macro, it will loop through the text, create everything between "startLink" and "endLink" into a Hyperlink to the appropriate Bookmark and delete the "startLink"s and "endLink"s. Cheers, Peter |
|
![]() |
|
![]() |
|
Peter, Thanks so much! That works great, and is exactly what I needed. |
|
![]() |
|
![]() |
|
(Thanks Richard for your help as well)
John |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Word hyperlink to bookmark during export
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.