Home
AODL
 An OpenDocument Library

  About & Info 
  Documentation & Help 
  FAQ 
  Change log 
  Roadmap
  Projectsite on SF.net 
  Download
AODC
 An OpenDocument Converter

  About 
  Change log 
  Screenshots 
  Download 
EmbeddedOpenOffice.net Control
 Add OpenOffice as editor

  About 
  Screenshots 
  Download 
EmbeddedOpenOffice VS AddIn
 Edit OO files within your IDE

  About 
  Screenshots 
  Download 
All projects 
  Bugs 
  Feature request 
  Forum 
  Autor & Contact 


SourceForge.net Logo


 
 
 
 

AODL, AODC and EmbeddedOpenOffice has a new Home!
You should be forwarded to the new site in 10 s, if not use the following link: http://www.opendocument4all.com


 
 
 
 
  About Embedded OpenOffice .net Control

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:

  1. 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.
  2. Create a new winform application within Visual Studio.
  3. Create a new folder resources within your new project.
  4. Copy all files from the compiled into this folder.
  5. Open the register.bat file and edit the following regsvr32 <openoffice_program_path>. Replace <openoffice_program_path> with your path. (It's the path where soffice.exe is located). Save register.bat
  6. Run register.bat per double click
  7. 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.
  8. 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);


This site use Google Analytics: Google Privacy Policy