Discussion:
rtf2html report conversion by VBScript
(too old to reply)
unknown
2009-05-29 14:55:43 UTC
Permalink
Hello,

can anyone help me to convert rtf text in object`s
properties to html report by VB Script? For example UseCase
has properties like Description, Annotation, ActionSteps,
etc. which can be formatted in MS Word. I have a script
which creates HTML report but I cannot add these rtf texts
(even with their format) into that report.

PowerDesigner has to have that function because when I
create html report directly through the report wizard the
texts even with format is imported correctly. Any help
appreciated. TIA.

Ondra
unknown
2009-05-29 15:08:48 UTC
Permalink
Ondra,

I'm not sure if this meets all your needs, but there is a
global method/function that converts RTF to ASCII. Here is
sample VBS that shows usage syntax:

Output "Desc(ASCII): " + Rtf2Ascii (cls.Description)

This would allow plain text to be included into the HTML
doc. I've not seen or heard of anything that takes RTF and
produces formatted HTML.

HTH,
Bill
Post by unknown
Hello,
can anyone help me to convert rtf text in object`s
properties to html report by VB Script? For example
UseCase has properties like Description, Annotation,
ActionSteps, etc. which can be formatted in MS Word. I
have a script which creates HTML report but I cannot add
these rtf texts (even with their format) into that report.
PowerDesigner has to have that function because when I
create html report directly through the report wizard the
texts even with format is imported correctly. Any help
appreciated. TIA.
Ondra
unknown
2009-06-05 08:46:41 UTC
Permalink
Thanks Bill. Good enough.

Ondra
Post by unknown
Ondra,
I'm not sure if this meets all your needs, but there is a
global method/function that converts RTF to ASCII. Here is
Output "Desc(ASCII): " + Rtf2Ascii (cls.Description)
This would allow plain text to be included into the HTML
doc. I've not seen or heard of anything that takes RTF and
produces formatted HTML.
HTH,
Bill
Post by unknown
Hello,
can anyone help me to convert rtf text in object`s
properties to html report by VB Script? For example
UseCase has properties like Description, Annotation,
ActionSteps, etc. which can be formatted in MS Word. I
have a script which creates HTML report but I cannot add
these rtf texts (even with their format) into that
report. >
Post by unknown
PowerDesigner has to have that function because when I
create html report directly through the report wizard
the texts even with format is imported correctly. Any
help appreciated. TIA.
Ondra
Martijn Evers AKA DM Unseen
2009-06-05 09:06:19 UTC
Permalink
Post by unknown
Thanks Bill. Good enough.
Ondra
Post by unknown
Ondra,
I'm not sure if this meets all your needs, but there is a
global method/function that converts RTF to ASCII. Here is
Output "Desc(ASCII): "  + Rtf2Ascii (cls.Description)
This would allow plain text to be included into the HTML
doc. I've not seen or heard of anything that takes RTF and
produces formatted HTML.
HTH,
Bill
Post by unknown
Hello,
can anyone help me to convert rtf text in object`s
properties to html report by VB Script? For example
UseCase has properties like Description, Annotation,
ActionSteps, etc. which can be formatted in MS Word. I
have a script which creates HTML report but I cannot add
these rtf texts (even with their format) into that
report. >
Post by unknown
PowerDesigner has to have that function because when I
create html report directly through the report wizard
the texts even with format is imported correctly. Any
help appreciated. TIA.
Ondra- Tekst uit oorspronkelijk bericht niet weergeven -
- Tekst uit oorspronkelijk bericht weergeven -
You could check ou http://www.docfrac.net
which is a full API and app to convert between RTF and HTML (open
source).

DM Unseen

Loading...