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

Embedding Impress in VB .Net

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
GG Pollux
Newbie
Newbie


Joined: 21 Mar 2007
Posts: 2

PostPosted: Wed Mar 21, 2007 2:51 pm    Post subject: Embedding Impress in VB .Net Reply with quote

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


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

PostPosted: Mon Mar 26, 2007 11:25 am    Post subject: Connect Reply with quote

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


Joined: 21 Mar 2007
Posts: 2

PostPosted: Mon Mar 26, 2007 2:14 pm    Post subject: Reply with quote

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


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

PostPosted: Tue Mar 27, 2007 9:57 am    Post subject: Connect to running OOo instance Reply with quote

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
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
Page 1 of 1

 
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