This example illustrates controlling Microsoft Excel, Version 5,
as an OLE server running within a Delphi TOLEContainer component.
It starts up with Excel running.  When you click outside the
TOLEContainer, Excel continues to run but is not visible.  If
you then click the SaveAs... button, a new Workbook is created,
the contents of the edit box are inserted as the value of the
upper left cell, and Excel saves the worksheet under a name
you are asked to specify.

It illustrates interesting techniques: writing nested "mirror
classes", automatic allocation and deallocation of nested
objects, and the use of the TOLEObject.GetObject(ProgID : String)
constructor to "hook into" a running instance.

NOTE:  This example WILL NOT WORK if you are running Excel 7
(the 32-bit Office 95 application) under Windows 95.  This
is not a limitation of the TOLEAutoClient component, but
appears to be due to a problem with the way Delphi's own
TOLEContainer operates under Windows 95 with 32-bit servers.


