OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Full functional OpenOffice .net resp. C# user control
Goto page 1, 2  Next
 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Mon Oct 31, 2005 1:06 pm    Post subject: Full functional OpenOffice .net resp. C# user control Reply with quote

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. Wink
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
View user's profile Send private message Visit poster's website
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Fri Nov 04, 2005 12:36 am    Post subject: Connections hangs Reply with quote

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 Exclamation Question Idea Now i will try to run
all OpenOffice communications in a seperate thread ,
any better ideas Idea

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 Wink

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
View user's profile Send private message Visit poster's website
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3208
Location: Troyes France

PostPosted: Fri Nov 04, 2005 10:08 am    Post subject: Reply with quote

receive all my congratulation for your job.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Wed Nov 16, 2005 1:44 am    Post subject: Embedded OpenOffice .net Control available Reply with quote

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 Wink 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
View user's profile Send private message Visit poster's website
Mathew
General User
General User


Joined: 17 Oct 2005
Posts: 7

PostPosted: Wed Nov 16, 2005 6:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Wed Nov 16, 2005 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Thu Nov 17, 2005 8:58 am    Post subject: WM Message Reply with quote

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
View user's profile Send private message Visit poster's website
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Fri Nov 18, 2005 3:21 am    Post subject: Another way Reply with quote

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 Wink

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
View user's profile Send private message Visit poster's website
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Mon Nov 21, 2005 1:07 am    Post subject: It's done Reply with quote

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
View user's profile Send private message Visit poster's website
Mathew
General User
General User


Joined: 17 Oct 2005
Posts: 7

PostPosted: Mon Nov 21, 2005 1:24 am    Post subject: Reply with quote

I have to admit I'm very impressed with this new control! Good work!
Back to top
View user's profile Send private message
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Mon Nov 21, 2005 1:28 am    Post subject: Thanks Reply with quote

Hi Mathew,

hope the new control will work for you as expected Wink 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
View user's profile Send private message Visit poster's website
xyl145988
General User
General User


Joined: 04 Dec 2005
Posts: 7
Location: china

PostPosted: Sun Dec 04, 2005 11:06 pm    Post subject: How to using the OpenOffice .net resp. C# user control Reply with quote

How to using the OpenOffice .net resp. C# user control save PDF format file.
Back to top
View user's profile Send private message
LarsB
OOo Advocate
OOo Advocate


Joined: 31 Aug 2005
Posts: 465
Location: Hamburg, Germany

PostPosted: Sun Dec 04, 2005 11:50 pm    Post subject: User Control Reply with quote

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
View user's profile Send private message Visit poster's website
Rakshith
Newbie
Newbie


Joined: 17 Feb 2009
Posts: 3
Location: India

PostPosted: Tue Feb 17, 2009 5:18 am    Post subject: Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3208
Location: Troyes France

PostPosted: Tue Feb 17, 2009 11:22 am    Post subject: Reply with quote

Sorry but LarsB doesn't watch any more this forum for a while and I am unable to help you. Embarassed
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group