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?
Just downloaded Trial version
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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:
For ScaleRichView
1) Place SRichViewEdit1: TSRichViewEdit on a form
2) Call:
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;
1) Place SRichViewEdit1: TSRichViewEdit on a form
2) Call:
Code: Select all
SRichViewEdit1.Clear;
SRichViewEdit1.RichViewEdit.LoadRTF(FileName);
SRichViewEdit1.Format;
-
- Posts: 17
- Joined: Sun Mar 27, 2016 5:15 pm
Same set of sample rtf files.
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.
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.
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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\
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\