| View previous topic :: View next topic |
| Author |
Message |
GG Pollux Newbie

Joined: 21 Mar 2007 Posts: 2
|
Posted: Wed Mar 21, 2007 2:51 pm Post subject: Embedding Impress in VB .Net |
|
|
Hi,
I have searched the forums and read some of the documentation and have found a lot of information but I am still a little bit confused so I hope somebode can give me some help.
I want to be able to embeed Impress into a VB .Net Windows form. I did not have too much sucess with Active X (maybe I did not understand how to use it). I played with some of the COM automation examples and managed to load the document but not contained in the Windows form. Also Impress always started in desing mode.
Eventually I came across LarsB .Net component and I managed to load my document and show it inside the form. The problem again is that Impress starts in desing mode and I do not know how to send it a command to start the presentation. Also, when I start the presentation manually it goes full screen and it is not containing with it the boundaries of the form or the object where Impress is containded on the form.
I know that it is possible to start the presentation automatically from the command line using the -show parameter so I assume it should be possible to do it programatically.
So my questions are:
1) If not using LarsB component how do I embed Impress in my Windows form, i.e., the presentation being played and not in desing mode.
2) How do I start the presentation automatically.
Thanks in advance. |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 445 Location: Hamburg, Germany
|
Posted: Mon Mar 26, 2007 11:25 am Post subject: Connect |
|
|
Hi,
if you use my embed OpenOffice.org .net control you can connect
to the running OOo instance in the background by using the CLI
language bindings. Up to now I don't see any other options to get
your request running.
Regards
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 |
|
 |
GG Pollux Newbie

Joined: 21 Mar 2007 Posts: 2
|
Posted: Mon Mar 26, 2007 2:14 pm Post subject: |
|
|
LarsB,
Thanks for the reply. After spending some time reading posts in the forum I thought that seems to be the only way.
Now, I have look at some of your examples in C# but it does not seem to be too many people having a go at it with VB (maybe I missed the posts). I will follow some of your examples and see where I get. Any hint on how to get there without too much pain?
Another thing. How do I know I am talking to your control?
Regards,
GG Pollux |
|
| Back to top |
|
 |
LarsB OOo Advocate


Joined: 31 Aug 2005 Posts: 445 Location: Hamburg, Germany
|
Posted: Tue Mar 27, 2007 9:57 am Post subject: Connect to running OOo instance |
|
|
Hi,
you won't connect to the control itself you have to connect to
the OOo instance which is running when you load documents
within the control. To make sure that you get the right document
if there are also other documents opened at the same time you
have to iterate over all opened documents and the check the
documents name / title.
Yes, you're right most samples are in C# and not in VB.net, but
I guess this shouldn' t be problem.
Regards
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 |
|
 |
|