Page 1 of 1

Just downloaded Trial version

Posted: Sun Mar 27, 2016 5:24 pm
by DelphiDude
and trying to load an RTF into either the RichView or RichViewEdit with the loadrtf command and both of them throw an exception.
Will it load an RTF created from Word and saved as RTF?

Posted: Sun Mar 27, 2016 6:39 pm
by Sergey Tkachenko
Yes, it must do it.
Please send this RTF file to me at richviewgmailcom for testing.

Posted: Mon Mar 28, 2016 9:37 am
by Sergey Tkachenko
Hello,

I received your files, both of them are opened successfully in the ActionTest demo of the trial version
(there is a newer version available for registered users, it fixes some bugs existing in the trial version, but it seems that everything is ok with loading these files).

How do you load them?


For TRichViewEdit (or TRichView)

1) Place RichViewEdit1: TRichViewEdit on a form
2) Place RVStyle1: TRVStyle on a form
3) Link RichViewEdit1.Style = RVStyle1
4) Call:

Code: Select all

RichViewEdit1.Clear;
RichViewEdit1.LoadRTF(FileName);
RichViewEdit1.Format;
For ScaleRichView

1) Place SRichViewEdit1: TSRichViewEdit on a form
2) Call:

Code: Select all

SRichViewEdit1.Clear;
SRichViewEdit1.RichViewEdit.LoadRTF(FileName);
SRichViewEdit1.Format;

Same set of sample rtf files.

Posted: Mon Mar 28, 2016 8:35 pm
by DelphiDude
I have one with a footer of page # of #
how do i import this into richviewedit and keep the header/footers.
i found on the forum an setting for
richviewedit....setfooter(nil) but this didnt seem to make any difference.
not sure what all i would need to do to load up the rtf files, then search&replace text(searchtext/inserttext found demo) then after that is done i want to save it all back into a new folder as a DOC file. then allow my application user to open it in Word.

Posted: Tue Mar 29, 2016 7:45 am
by Sergey Tkachenko
If you need a single editor component that can edit both the main document and all headers and footers, you should use TSRichViewEdit from ScaleRichView.

If you want using TRichViewEdit, you need to create a separate editor for each header and footer.
See the demo in Demos\DelphiUnicode\Assorted\Printings\Headers\