|
|
|
About Embedded OpenOffice .net Control |
|
|
|
Written by LB
|
|
Sunday, 25 December 2005 |
|
The Embedded OpenOffice .net User Control give you the possibilty to add a full functional OpenOffice to your .net Windowsforms. The Control is written in C#. Simply add it to your ToolBox and drag it onto your form. The Control is published under the LGPL License so that you can use it within your commercial apps. Release History: - 20/11/2005 release 1.0.0.5 complete rewrite, no more startup and repaint problems. New .net MDI Example Application (part of the download)
- 15/11/2005 First public release 1.0.0.4
A Simple App using the Embedded OpenOffice .net Control: - Download the Embedded OpenOffice .net Control from the sourceforge.net file area. Inside the download you will find the source, a compiled version and a sample MDI .net application which demonstrate all features.
- Create a new winform application within Visual Studio.
- Create a new folder resources within your new project.
- Copy all files from the compiled into this folder.
- Open the register.bat file and edit the following regsvr32 . Replace with your path. (It's the path where soffice.exe is located). Save register.bat
- Run register.bat per double click
- Double click a form file within the Project Viewer to open it in the winform designer. Now, activate the toolbox. Open the menubar, where you want to add the control. Right click into the blank area and choose item add. In the following window choose search and add the EmbeddedOpenOfficenet.dll.
- Now open the form in a code editor window. After the InitializeComponent(); method add one of the following code snippets:
Open a blank document:
this.embeddedOpenOffice1.OpenOfficePath = @"C:\Program Files\OpenOffice.org 2.0\program"; this.embeddedOpenOffice1.TempFolder = @"C:\temp\"; this.embeddedOpenOffice1.NewOpenOfficeInstance(OpenOfficeTypes.Calc);
Open an existing document:
this.embeddedOpenOffice1.OpenOfficePath = @"C:\Program Files\OpenOffice.org 2.0\program"; this.embeddedOpenOffice1.TempFolder =@"C:\temp\"; this.embeddedOpenOffice1.LoadDocument(@"C:\test.odt", false);
|
|
Last Updated ( Sunday, 25 December 2005 )
|
|
|
Who's Online |
|
We have 1 guest online |
|