I must be doing something wrong. LoadRTF not working?
Posted: Wed Oct 06, 2010 11:06 pm
I've downloaded the trial version of Richview (V12.6.1) for Delphi 2007 and I'm trying to get it to read in an RTF document. I dropped a tRichView and a style component on my form along with a button with the following code. Basically cloned from one of the demo programs.
begin with RichViewTest do
begin
Clear;
DeleteUnusedStyles(True,True,True);
if loadRTF( 'RV.rtf') then
begin
MessageDlg ( 'Load RTF OK', mtError, [mbOK], 0 );
end;
end;
end;
I click the button and the Load RTF OK dialog pops up but there is nothing displayed in the RichView control.
This seem so basic I can't believe it's so badly broken. What and I missing?
begin with RichViewTest do
begin
Clear;
DeleteUnusedStyles(True,True,True);
if loadRTF( 'RV.rtf') then
begin
MessageDlg ( 'Load RTF OK', mtError, [mbOK], 0 );
end;
end;
end;
I click the button and the Load RTF OK dialog pops up but there is nothing displayed in the RichView control.
This seem so basic I can't believe it's so badly broken. What and I missing?