Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12-Aug-2008 15:42
User is offline View Users Profile Print this message


J. Lamm

Posts: 7
Joined: 13-Jun-2008

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.
Report this to a Moderator Report this to a Moderator
 12-Aug-2008 15:50
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

In picture format this effort will be dificult -- In ole format this effort is duable.
Report this to a Moderator Report this to a Moderator
 13-Aug-2008 07:40
User is offline View Users Profile Print this message


J. Lamm

Posts: 7
Joined: 13-Jun-2008

Hey Ron,

I know that it is possible with OLE, but I need to use the picture format. Thanks for your answer.

Regards.
Report this to a Moderator Report this to a Moderator
 13-Aug-2008 11:44
User is offline View Users Profile Print this message


Anders Vestlin

Posts: 11
Joined: 30-Aug-2007

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.
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 08:36
User is offline View Users Profile Print this message


J. Lamm

Posts: 7
Joined: 13-Jun-2008

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.
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 10:33
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 13:05
User is offline View Users Profile Print this message


J. Lamm

Posts: 7
Joined: 13-Jun-2008

thanks for your answer. Yes you understood it right. Unfortunately your idea is not working
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 13:11
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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?
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 13:14
User is offline View Users Profile Print this message


J. Lamm

Posts: 7
Joined: 13-Jun-2008

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
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 13:47
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
 14-Aug-2008 13:58
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

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
Report this to a Moderator Report this to a Moderator
 18-Aug-2008 02:19
User is offline View Users Profile Print this message


Paul R Miller

Posts: 29
Joined: 16-Feb-2007

Originally posted by: Peter Albert

....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
Report this to a Moderator Report this to a Moderator
 21-Aug-2008 07:35
User is offline View Users Profile Print this message


J. Lamm

Posts: 7
Joined: 13-Jun-2008

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.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.