Monday 15 August 2011

Can rich text (.rtf) data be stored (and as a result searched) in a Progress CLOB -



Can rich text (.rtf) data be stored (and as a result searched) in a Progress CLOB -

i know can store .rtf file content in blob, want store in clob can utilize string functions search-and-replace. possible store .rtf info in clob? also, had run codepage issues when trying utilize copy-lob .rtf file longchar. not sure codepage conversion utilize have not tried convert codepages before.

you can handle rtf-text in clob long know kind of codepage used save file.

here's short illustration rtf-file saved wordpad copied local variable.

define variable crtf longchar no-undo. define variable cstring character no-undo. copy-lob file "c:\temp\rtf.rtf" crtf convert source codepage "utf-8". cstring = substring(crtf,1,100). message cstring view-as alert-box. copy-lob crtf file "c:\temp\copy.rtf" convert target codepage "utf-8".

you can utilize replace , such methods interact text must understand contain entire rtf-string metadata actual text

clob progress-4gl openedge

No comments:

Post a Comment