How to insert object in RichViewEdit(just like word2003)?
How to view as "print layout" in RichViewEdit(just like word2003)?
Thanks!¡¡¡¡
2 Questions about RichViewEdit
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.