How to use include file and image element to fetch file attachment data in RPE from RQM?
Accepted answer
Note that you can insert only Word /RTF document in RPE output by using Include File element and Image files using Image element. However, if you have other attachments (.xls, .pdf, etc.), you can only display Hyperlinks to the attachment in the output.
As a workaround, you can download the RQM attachments to local path using RQMURLUtility during document generation and then embed them as OLE in Word output. This es explained in https://rpeactual.com/2015/11/13/embed-attachments-as-oles-in-the-rpe-word-output/
Comments
Note: If you find the answer correct, you may accept the answer. Otherwise I will check this further and respond again.
(a) Can RPE put the attached word file content From RQM as an OLE object in the 'include file' element in my template other than downloading the file separately or import it manually during file generation by it and without using the RQMUrlUtility.
Ans: If you are using "Include File" element, the word file cannot be included as OLE. Either the content of included file will be physically embedded OR a hyperlink to the file (which is copied to the output ref folder) will be displayed. Only option to have OLE is to use macro.
b) That is expected.
c) Please refer the blog and you can find the related files in the attachment.
Thanks a lot for your answer. We would like to physically embed the attachment content through automatic process into RPE. Could you help us how we can achieve this? once agin, I appreciate your help.
Seems like the attachment in the blog does not contain the macro. I will provide the macro that will embed (any) attachments into the Word output.
Thanks again for replying me. I implemented the Macro and three attachments downloaded from RQM to RPE but i could just open one of them not the other two. Then i emailed the generated RPE report to one of the user but he could not open any of those three attachments with message showing "Cannot open the specified file" . I would appreciate your help regarding this.
Please confirm if the files are downloaded in the local path. Refer the sample macro in the zip file (https://ibm.box.com/s/0zj4aioybpkuxla8suiprtgz3b7kuh74) using which you can embed them as OLE. Once it is done, other users (using different machine) should be able to open them.
Hi Prasad,
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 18 '16, 1:14 p.m.Try to keep your keywords relevant. For example, this post is about RPE and RQM (and is not about rational-team-concert or rational-requirements-composer).
ataul gani
Dec 18 '16, 6:09 p.m.Thanks. I would definitely follow it next time.