xref: /aoo42x/main/odk/examples/OLE/activex/README.txt (revision cdf0e10c)
1						Compile.
2Warning: Before the control can be built user has to add path to MS ATL headers
3 into Makefile.
4
5If you use the build environment of the SDK you have to check which MS compiler
6do you use. It you use the MS Visual Studio .NET compiler everything should work
7fine with the SDK. If you use an older MS compiler please edit the Makefile and
8uncomment or remove the line 'CL_NEW_LIB=atls.lib'.
9
10						Description.
11
12The StarOffice ActiveX control shows an example of access to UNO through COM technology.
13It requires a properly installed StarOffice version 6.0/6.1 or OpenOffice 1.0.
14This is a Lite ActiveX control so it can be used only in containers that
15allows to use such controls. It can be activated with an <OBJECT> tag from
16a html-page to embed a document. Without any parameters a new writer document will be
17opened for editing. Possible parameters are
18    src      - full URL to the file that should be edited/viewed;
19               it can contain "private:factory/..." URLs to open new documents
20			   for edit, for example "private:factory/swriter"
21    readonly - if it is set to "true" the document will be opened readonly,
22	           otherwise the document will be opened for editing.
23
24The control can be extended easily, for example it can be changed
25to allow scripting to load different documents.
26
27As any ActiveX control this one should be registered.
28To let MSIE register it itself the "CODEBASE" parameter
29for the "OBJECT" tag should be specified
30with an URL to the library "so_activex.dll".
31
32Also it can be done using regsvr32 application.
33To do it please write
34<Path to Windows installation>\System32\regsvr32 so_activex.dll
35
36To unregister the control please use /u option:
37<Path to Windows installation>\system32\regsvr32 so_activex.dll /u
38
39
40