Art  Delphi  Automation  History  Home  Politics  Email me Default Colours  Printable Colours

A compound OLE document

 

Alexandre Rai has written this sample project that uses a TOleContainer to create an embeddable, insertable document. As well as demonstrating the interfaces you need to implement and the registration keys that have to be set up to make an embeddable OLE document, this simple OLE Viewer is useful for presenting some files that can't be shown in other programs because they were saved using an OleContainer - for example, PaintBrush bitmaps. If you're having that problem, take a look as well at the code for a dll (included in the zip) which allows you to insert .ols files (saved with OleContainer.SaveToFile) into an OleContainer.

Download the Ole Viewer project.