Hi,
I saw some posts on showing OLE in RTF, but is there a way to convert the OleContainer into an image, when saving to html?
OLE Container and HTML
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I am not sure about the best solution, but it seems that OleContainer.PaintTo works.
You can use
function DrawControl(ctrl: TControl): TBitmap;
from CtrlImg unit to create a bitmap from OleContainer (this function uses PaintTo inside).
Do not forget to free this bitmap after saving.
For saving in HTML, use OnSaveComponentToFile event.
You can use
function DrawControl(ctrl: TControl): TBitmap;
from CtrlImg unit to create a bitmap from OleContainer (this function uses PaintTo inside).
Do not forget to free this bitmap after saving.
For saving in HTML, use OnSaveComponentToFile event.