Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert rtf to plain text
#10
I tried this, but it doesnt work

Macro Macro23
Code:
Copy      Help
int hwnd=CreateWindowEx(0 "RichEdit20W" 0 0 0 0 0 0 0 0 0 0) ;;create rich edit control
str file_tmp="$desktop$\t.txt" ;;temp file
str file_rtf="$desktop$\b.rtf"
str rtf.getfile(file_rtf)
rtf.setfile(file_tmp)
RichEditLoad(hwnd file_tmp) ;;load rtf into the control
str text.getwintext(hwnd) ;;get text from the control
DestroyWindow hwnd
out text

But I think the hwnd isn't properly declared.
(or did I mis something else?)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)