Just downloaded Trial version

General TRichView support forum. Please post your questions here
Post Reply
DelphiDude
Posts: 17
Joined: Sun Mar 27, 2016 5:15 pm

Just downloaded Trial version

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, it must do it.
Please send this RTF file to me at richviewgmailcom for testing.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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;
DelphiDude
Posts: 17
Joined: Sun Mar 27, 2016 5:15 pm

Same set of sample rtf files.

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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\
Post Reply