| View previous topic :: View next topic |
| Author |
Message |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Mon Oct 31, 2005 1:06 pm Post subject: Full functional OpenOffice .net resp. C# user control |
|
|
Hi all,
Good new for all who want to embedded OpenOffice in their .net resp.C# applications.
I'm currently developing a OpenOffice .net UserControl. The idea came up during
a thread on the unusable of the ActiveX control which is delviered withing
OpenOffice. The he user control is approximateley stable. After i used it within
my one of my projects it will be published under LGPL, so that all developer
can use it as they want. Now, you ask yourself, when he will release the control? Or?
As soon as possible, i think in approximateley a week. I will Post it in here if
it is available.
On my homepage http://aodl.sourceforge.net i will open
a new section for the control, if it is completly stable.
Here a little feature list:
- full implemented windows usercontrol, which can be added to your toolbox
- can be started with blank or load file (Calc, Impress and Writer)
Draw can't be started (maybe a bug?) but you can start a writer instance and
then Open a Draw Document or create new one
- all OpenOffice Features are usable (Print, Save, PageView, PDF Export, ..)
Here a Screenshot of the latest version:
Cheers
Lars B _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Fri Nov 04, 2005 12:36 am Post subject: Connections hangs |
|
|
Hi,
the EmbeddedOpen Office control works fine, but
sometimes it happen that the connection to OpenOffice
break down during an Operation.
Now, my problem is that i can't reproduce the bug,
because the complete application thread is blocked.
Both the calling App process and OpenOffice process
has to be killed. hmm Now i will try to run
all OpenOffice communications in a seperate thread ,
any better ideas
My other project which use the control is almost
ready. So that i plan to release, the control within
the beginning of the next week
Cheers
Lars B _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3208 Location: Troyes France
|
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Wed Nov 16, 2005 1:44 am Post subject: Embedded OpenOffice .net Control available |
|
|
Hi,
the Embedded OpenOffice .net User Control is available.
You could download it from the AODL Homepage.
http://aodl.sourceforge.net
Also available the Embedded OpenOffice Visual Studio 2003
.net Add In. This Add In will extend your IDE with a full functional
Embedded OpenOffice ToolWindow. Never more switch
between windows. Simply create, open and edit your Office
files inside your IDE The Add In is free and also available
on the AODL hompepage.
http://aodl.sourceforge.net
Cheers
Lars B _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
Mathew General User

Joined: 17 Oct 2005 Posts: 7
|
Posted: Wed Nov 16, 2005 6:28 pm Post subject: |
|
|
| The control seems to have some pretty severe painting problems. If I open one of the menus, everything except the menu and a little surrounding area disappears! |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Wed Nov 16, 2005 11:31 pm Post subject: |
|
|
Hi Mathew,
i know this and have added this side effects on the known
trouble section. I'm still searching for a solution. I t looks
like that sometimes the repaint events are lost by the real
OpenOffice instance. I will try to solve it by sending extra
windows messages directly to the OpenOffice window
handle. Hope that will solve the problems.
Cheers
Lars B _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Thu Nov 17, 2005 8:58 am Post subject: WM Message |
|
|
Hi again,
using Spy++ i found the troublemaker. OpenOffice intern send three
WM Message. First Message is WM_NCPAINT, next ist WM_ERASEBKGND
and last ist WM_PAINT. Every time a one of this black areas appears i could
not trace the WM_ERASEBKGND. So i will try to Send this Message
directly to the OpenOffice WinowHandle. I will post it if it work.
Cheers
LarsB _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Fri Nov 18, 2005 3:21 am Post subject: Another way |
|
|
Hi,
spending most hours of the last night with sending
nearly tons of WM_Messages i've decided to rewrite
the whole stuff. The main reason herefore is the
painting trouble that the control shows. My app and and
the OpenOffice app are not able to realize that some
areas has to repaint, because they are painted black.
So long i hope that most of the people who want to
use this in real projects can wait until the new version
is ready. I've already worked out a new design plan
and the first tests shows that that will be the right way
Cheers
LarsB _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Mon Nov 21, 2005 1:07 am Post subject: It's done |
|
|
Hi all,
after a long coding weekend it's done. The new control
is a complete rewrite.
Solved trouble:
- no more repaint trouble
- faster and saver startup of the embed OpenOffice instance
New features:
- draw instance is also supported
- own OpenOffice OpenFileDialog, which only let the user
choose a by OpenOffice supported file type
Also there's a MDI .net Example Application which show
the usage of the control. You will find the example app
(incl. the sourcecode) within the download package.
Homepage : http://aodl.sourceforge.net
Cheers
Lars B _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
Mathew General User

Joined: 17 Oct 2005 Posts: 7
|
Posted: Mon Nov 21, 2005 1:24 am Post subject: |
|
|
| I have to admit I'm very impressed with this new control! Good work! |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Mon Nov 21, 2005 1:28 am Post subject: Thanks |
|
|
Hi Mathew,
hope the new control will work for you as expected If you
found a bug, post it, please.
Cheers
Lars B _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
xyl145988 General User

Joined: 04 Dec 2005 Posts: 7 Location: china
|
Posted: Sun Dec 04, 2005 11:06 pm Post subject: How to using the OpenOffice .net resp. C# user control |
|
|
| How to using the OpenOffice .net resp. C# user control save PDF format file. |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 465 Location: Hamburg, Germany
|
Posted: Sun Dec 04, 2005 11:50 pm Post subject: User Control |
|
|
Hi,
the target of the control isn't the automation
of OpenOffice.It should give you the possibilty
to add OpenOffice as embed Editor to your
.net applications. Of course the user could
export their documents, but they will doit by
real interaction as they would do by the real
using of OpenOffice.
If you want to communicate
to the runiing embed instance you have to
implement this via the CLI assemblies resp.
via Interop and reflection using the old way.
Cheers
LarsB _________________ AODC - A free OpenDocument Converter
AODL - An independent OpenDocument Library C#
EmbeddedOpenOffice .net UserControl C#
EmbeddedOpenOffice Visual Studio .net Add In
http://www.OpenDocument4all.com/ |
|
| Back to top |
|
 |
Rakshith Newbie

Joined: 17 Feb 2009 Posts: 3 Location: India
|
Posted: Tue Feb 17, 2009 5:18 am Post subject: |
|
|
hi Lars,
can you pls tell me how to get document object(xcomponent) of the doc which is loaded in a form using EmbeddedOpenOffice.
or atleast the frame. |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3208 Location: Troyes France
|
|
| Back to top |
|
 |
|