Problem Load RTF File with TSRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
davidc
Posts: 1
Joined: Tue Feb 15, 2011 7:28 pm
Location: CO

Problem Load RTF File with TSRichViewEdit

Post by davidc »

Hi,

I try to open a RTF File with TSRichViewEdit and don't open righ.

Enviroment
TSRichViewEdit v3.6.1
IDE Delphi2010

Code for open file

Code: Select all

//config SrveEditor =>TSRichViewEdit
  SrveEditor.Clear;
  SrveEditor.RichViewEdit.DeleteUnusedStyles(true,true,true);
  SrveEditor.RTFReadProperties.ReadDocParameters:=true;
  SrveEditor.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;
  SrveEditor.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;
  
  ...
  ... 
  ...
  SrveEditor.RichViewEdit.LoadRTF(OpenDialog1.FileName);
  SrveEditor.Format

- RTF File Loaded don't show breakpage right way. I open this RTF File with MS Word And looks correct.
- RTF File was build by FastReport Components (TfrxReport + TfrxRTFExport).
- I try Runtime And Desing Time. Don't work

Any Idea?

Thanks
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I am not sure that I understand what's the problem with this RTF file.
But if it contains floating objects, they will not be imported, because TRichView and ScaleRichView do not support floating objects.
Post Reply