![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Picture in traceability column Topic Summary: Is this possible? Created On: 12-Aug-2008 15:42 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello together,
I want to know if it is possible to show pictures in the traceability column. The problem is that I have a module, which contains 200 pictures and this pictures are linked to around 150 modules. I do not want to insert the picture in the other modules, because some of the pictures need to be in all modules. For this reason I decided to have one module with all the pictures. Is there a way to use the traceability column or any other way? Thanks for you help. Regards. |
|
![]() |
|
![]() |
|
In picture format this effort will be dificult -- In ole format this effort is duable.
|
|
![]() |
|
![]() |
|
Hey Ron,
I know that it is possible with OLE, but I need to use the picture format. Thanks for your answer. Regards. |
|
![]() |
|
![]() |
|
Check out loadBitmap and drawBitmap in the DXL reference manual to draw bitmaps in a DXL-layout. Use getPictName(Object o) to get the local file reference for the picture.
|
|
![]() |
|
![]() |
|
Thanks for the answer, but I am not so familiar with DXL. I guess I have to modify the script for the traceability column but it is somehow cryptically.
Is there a way to convert a jpg to bmp with DXL? Then I can use the OLE object. |
|
![]() |
|
![]() |
|
If I understand you correctly, the "Object Text" of your picture module's objects contain .jpg images, and you want to display those images in the traceability column created by the Analysis Wizard?
If this is the case, then all you have to do is find the following line in the column DXL code: s = probeRichAttr_(othero,"Object Text", false) and replace it with s = richTextWithOle(othero."Object Text") Then the images should be displayed in the traceability column. Cheers, Peter |
|
![]() |
|
![]() |
|
thanks for your answer. Yes you understood it right. Unfortunately your idea is not working
|
|
![]() |
|
![]() |
|
What exactly does not work? Do you get an error message? An empty column? What if the linked object contains text in addition to the image? Is the text properly displayed or also missing?
|
|
![]() |
|
![]() |
|
The text is displayed, but nor the picture. If I remove the additional text, nothing is displayed.
I have also another picture format. I used the DOORS function to import a picture. I was originally a jpg, but DOORS converts the picture. The text shown in the traceability column: <Picture> So with both formats it is not working. Edited: 14-Aug-2008 at 13:26 by J. Lamm |
|
![]() |
|
![]() |
|
O.k., I never used the picture import function. In my modules, all pictures are either imported or copy/pasted from Word files. As such, they display perfectly in the main column, and they can be displayed using the tichTextWithOle perm. If you still have the original jpg files you could create a temporary word file, import it into DOORS und update your module. Otherwise, if you have to stick with the pictures, I can't help you.
Peter |
|
![]() |
|
![]() |
|
Peter forgot to mention that you also need to replace "display" with "displayRich" in your layout DXL.
------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
....and replace it with s = richTextWithOle(othero."Object Text") Then the images should be displayed in the traceability column. The only problem with this is that DOORS handles so called "pictures" such as BMP, GIF, JPG etc quite differantly to OLE so the "richTextWithOle" function will not work here. Also, if using the Analysis Wizard to create a trace column, there is an option to display OLE objects and this will automatically use the "richTextWithOle" function. The workaround is to put the picture file inside of an OLE object so that it can be displayed via the "richTextWithOle" function or if you enable the option to display OLE objects when using the Analysis Wizard. The best OLE object type to use is the "Microsoft Word Picture" OLE object. I recommend that you create a new module object, insert a white space so that it becomes a text object, then select Insert > OLE object from the module menu. From the list of OLE's available to you, select the "Microsoft Word Picture" option and then select OK. This will open up MSWord and you will be presented with a page that has a framed area. Whatever is inside this framed area is what you will see in DOORS - the size of the frame can be altered to suit via the top and side ruler bars. Copy and paste your picture file into this framed area, resize either the frame or the picture so that it takes up most of the framed area and then close Word. You now have an OLE object with a picture file sitting inside of it, and it should now be visible in a trace column that uses the "richTextWithOle" function or, a column created by the Analysis Wizard with option to display OLE objects enabled. ------------------------- Paul Miller Specification Practices Specialist EuroCyber Melbourne, Australia Mobile: + 61 (0) 418 135 103 http://www.eurocyber.biz |
|
![]() |
|
![]() |
|
Thanks a lot Paul. The problem with your solution is that I have around 300 pictures and I need to update them every week. Do you know if there is a script or any kind of automatism, which inserts the picture automatically into MS Word?
Otherwise I will convert the pictures to bmp and insert them as ole. This works as well, the only problem is the size of the pictures. Anyway thanks to everybody for your help. |
|
![]() |
Telelogic DOORS
» General Discussion
»
Picture in traceability column
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.