office-gobmx/odk/examples/OLE/activex
Jens-Heiner Rechtien 952c81daa8 INTEGRATION: CWS sdk04 (1.1.62); FILE MERGED
2003/06/24 11:10:02 jsc 1.1.62.1: #110313# insert source license header
2003-06-30 14:50:08 +00:00
..
example.html #99053# update path to dll 2002-06-13 10:06:42 +00:00
Makefile INTEGRATION: CWS sdk04 (1.7.6); FILE MERGED 2003-06-30 14:49:24 +00:00
README.txt
resource.h
so_activex.cpp
so_activex.def
so_activex.idl
so_activex.rc #99053# modified, new build env 2002-12-19 09:26:54 +00:00
SOActiveX.cpp INTEGRATION: CWS sdk04 (1.3.62); FILE MERGED 2003-06-30 14:49:35 +00:00
SOActiveX.h INTEGRATION: CWS sdk04 (1.1.62); FILE MERGED 2003-06-30 14:49:56 +00:00
SOActiveX.rgs
SOComWindowPeer.cpp INTEGRATION: CWS sdk04 (1.1.62); FILE MERGED 2003-06-30 14:49:56 +00:00
SOComWindowPeer.h INTEGRATION: CWS sdk04 (1.1.62); FILE MERGED 2003-06-30 14:50:08 +00:00
SOComWindowPeer.rgs
StdAfx2.cpp
StdAfx2.h

Warning: Before the control can be built 
user has to add path to MS ATL headers into Makefile.

						Description.

The StarOffice ActiveX control shows an example of access to UNO through COM technology.
It requires a properly installed StarOffice version 6.0/6.1 or OpenOffice 1.0.
This is a Lite ActiveX control so it can be used only in containers that
allows to use such controls. It can be activated with an <OBJECT> tag from 
a html-page to embed a document. Without any parameters a new writer document will be
opened for editing. Possible parameters are
    src      - full URL to the file that should be edited/viewed;
               it can contain "private:factory/..." URLs to open new documents
			   for edit, for example "private:factory/swriter"
    readonly - if it is set to "true" the document will be opened readonly,
	           otherwise the document will be opened for editing.
              
The control can be extended easily, for example it can be changed 
to allow scripting to load different documents.

As any ActiveX control this one should be registered.
To let MSIE register it itself the "CODEBASE" parameter
for the "OBJECT" tag should be specified 
with an URL to the library "so_activex.dll".

Also it can be done using regsvr32 application.
To do it please write
<Path to Windows installation>\System32\regsvr32 so_activex.dll

To unregister the control please use /u option:
<Path to Windows installation>\system32\regsvr32 so_activex.dll /u