Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 7 Monaten
Letzter Beitrag:
vor 3 Jahren, 7 Monaten
Beteiligte Autoren:
Andre Fourie, Alexandre Leclerc

Storing text rows and image rows and reading it - WD14

Startbeitrag von Andre Fourie am 17.11.2014 20:34

Does someone know of a simple way to store images, for example drag/drop from windows explorer or paste/copy from internet, and then read them again. Ideally something like this...

In a RTF field one can do the following:

Line1 - type formatted text /CR
Line2 - paste image copied from file or internet /CR
line3 - type a text line /CR
line 4 - type a text line /CR
line 5 paste image /CR etc.

I understand, the image is not going to be stored and will be gone when you display the RTF field again, The text field can be managed in a .txt file easily, but then one can't add images in-between text lines and read them to be displayed again.

I would like like to maintain a file like the RTF field above and then display its contents one row/record at a time.

Is there a simple way to do this in Windev? or does one need to write it in another language

I would really appreciate any advice from the experienced windev experts on the forum.

Thank you for taking the time to read my query, and your possible reply


Hi Andre,

I don't know about the RTF capacities in WD14, but in current versions you can paste an image and save the RTF document et load it again and the image is still there. The RTF format allows such "objects" to be "inlined" in the source.

In WD19, for example, it works well.

Now there are the RTF functions of WinDev that you can use, but they are limited. You will have to play with the RTF source directly (which I do). You can spot the \par command to detect the paragraphs (CR). Then with some manipulations you could extract every line you need and duplicate the RTF header to create a RTF source with only this line. If you only need the text, you can parse the line to get only that (I'm not sure RTFToText existed in WD14).

So yes you can play with RTF in WinDev and you probably could do what you want, depending of the RTF field capabilities in WD14.

Best regards,
Alexandre Leclerc

von Alexandre Leclerc - am 17.11.2014 21:03
Thank You Alexandre, I will look at the function and try it all out.

von Andre Fourie - am 19.11.2014 13:30
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.