2 Questions about RichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
oracle_eam
Posts: 1
Joined: Tue Sep 06, 2005 4:39 pm

2 Questions about RichViewEdit

Post by oracle_eam »

How to insert object in RichViewEdit(just like word2003)?

How to view as "print layout" in RichViewEdit(just like word2003)?

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

Post by Sergey Tkachenko »

1) You can insert any Delphi control in document. Just create it and call RichViewEdit.InsertControl.
For OLE objects, use TOleContainer. Example can be found in Demos\Delphi\Editors\Editor 1\ demo, menu Edit | Paste As | OLE. TOleContainer is quite a "delicate" component, it's required to process some additional events to make it work properly, search for all occurences of "OLE" in this demo to see the code.

2) Page layout view is not supported in editor, only in read-only component TRVPrintPreview.
Post Reply