OpenDocument4all - Info and tools about OpenDocument
Tuesday, 07 October 2008
Home arrow OO Development & Info arrow OpenOffice .net Control
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

About Embedded OpenOffice .net Control Print E-mail
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:

  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 . Replace 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);
Last Updated ( Sunday, 25 December 2005 )
 
Quick jump
Download area
Who's Online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.