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: Image import / export
Topic Summary:
Created On: 19-Sep-2005 08:55
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.
 19-Sep-2005 08:55
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

hello, i have a problem with the im- and export of images in Doors. The import seems to work correct, but when i export an images with exportPicture(ole,filename , formatPNG) then they seem to be rendered down, after the export. Fonts in a picture, are almost unreadable. Does someone had the same problem before? thanks in advance Ben Herfurth
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 09:05
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

Hi Ben,

what purpose are you exporting Ole's for? Did you ever think about rtf export?

Regards
Hubertus
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 09:18
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

i export them for userguide documentation. i am creating a docbook document, of the doors module, exporting the pictures and embedding the link to the picture in the docbook document. How does rtf export work? thanks in advance Ben Herfurth
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 09:29
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

Hi Ben, take a look at this. You will not loose data by exporting to rtf and have all the options of postprocessing. Fumble a bit with it to get what you want... You may also check (by oleCount ) each object whether Ole's are in and export only these which really contain OLE. Hope it helps Regards Hubertus Hubertus Grobbel, Fa. iss+c GmbH, www.issc.de string sRtfString = "" Stream out = null Module curMod = current Module string docName = "" Object o // also without visibility possible as an option //string modName = "Tests/simple" //curMod = edit( modName, false) for o in all curMod do { sRtfString = richTextWithOle (o."Object Text") // path to be adapted... docName = "d:\\doors_tmp\\ref_Object_Text_" o."Absolute Number" ".rtf" out = write docName out << sRtfString flush out close out out = null sRtfString = "" }
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 09:32
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

Hubertus Grobbel, iss+c GmbH, www.issc.de wrote


I love this webeditor ...

string sRtfString = ""

Stream out = null

Module curMod = current Module

string docName = ""

Object o

// also without visibility possible as an option

//string modName = "Tests/simple"

//curMod = edit( modName, false)

for o in all curMod do {

sRtfString = richTextWithOle (o."Object Text")

// path to be adapted...

docName = "d:\\doors_tmp\\ref_Object_Text_" o."Absolute Number" ".rtf"

out = write docName

out << sRtfString

flush out

close out

out = null

sRtfString = ""
}

Edited: 19-Sep-2005 at 09:39 by Hubertus Grobbel
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 09:45
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

hi hubertus,

your script works, but not really like i want to

when i run the script, i get really many rtf files. only some of them are images, the rest is either text snippets or zero-sized rtf's

i need pictures which are available after export, for a docbook -> tex -> pdf conversion

all this shall run automatically.

So, I can't decide if the rtf is an image or just text, with my script.

Thanks

Ben
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 09:49
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

Ben,

You may also check (by oleCount ) each object whether Ole's are in and export only these which really contain OLE.  :-)

Hope it helps
Regards Hubertus

Hubertus Grobbel, Fa. iss+c GmbH, www.issc.de

Report this to a Moderator Report this to a Moderator
 19-Sep-2005 10:03
User is offline View Users Profile Print this message


Ben Herfurth

Posts: 37
Joined: 9-Jun-2005

ah alright.

found a newer version of oleCount(at least the reference manual tells me ^^) --> oleIsObject(Object o)

and it works but now i need a method to convert the rtf documents to a picture format as jpg for example

btw i love this webeditor ^^ always have [br][br] in my clipboard ...

thanks

Ben
Report this to a Moderator Report this to a Moderator
 19-Sep-2005 13:10
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

Hi Ben,

Manual: "oleCount ...is... new version of oleIsObject(Object)"!

oleIsObject is obsolete! This is from the times each object could only contain *one* OLE. Now you can have any number and therefore oleCount gives you the number of embedded OLE's, just for info. But good to hear that it works.

Why do you want to convert the rtf-OLE's to jpg. Anyway in case you will handout your manual in paper-form or as pdf, Pdf-writer's usually convert to jpg or CCITT x or .... (configurable compression rate) ... There will be no problem.

In case you are generating html-help you may consult a third party tool. Browse for "Microsoft Help Workshop" or "RtfToJpg" (?)... This nothing i really know about, but I would start in that direction.

Hope it helps

Regards
Hubertus

Report this to a Moderator Report this to a Moderator
 20-Sep-2005 10:47
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Ben,

as I've read in this thread, you want to create a user's documention.

We solved this problem a long time ago in that way :
We are using a special Help Module, where hierarchically stored Mircosoft Word files with the Documentation.
It should mainly contain in Object Heading the help topic and a second Attribute called "Documentation File", which contains OLE Objects (Word files) with the documetation...

I've created a DXL script, which exports these files into a directory and creates all needed project and index files for the Microsoft HTML Help Workshop.

So after running this script, you have only to open the created project file in the HTML Help Workshop and press the compile button ---> Then you will get a compressed HTML Help file (.chm), which easily can be used with Doors helpOnEx function.
The Absolute Number of Object in Help Module can be used to display a special help topic in helpOnEx function : helpOnEx (dialog , "c:/test/help.chm", 5)

Get the HTML Help Workshop

I hope you will like this idea

Greetings
Reik Schroeder
Siemens AG Berlin

createHELP.dxl
createHELP.dxl  (8 KB)



-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 23-Sep-2005 17:42
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Reik,

A very nice little program. I had it up and running in about half an hour and was suitably impressed.

Regards,

Richard

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 27-Sep-2005 15:19
User is offline View Users Profile Print this message


Ken Mcguffie

Posts: 63
Joined: 3-Feb-2004

Reik,

Can't get dxl file fron the link. Any chnace of e-mailing it to kenny.mcguffie@baesystems.com?

Kind Regards

Kenny McGuffie
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.