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

Add image files to ooo extension

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
echidna21
General User
General User


Joined: 21 Jul 2010
Posts: 5

PostPosted: Thu Aug 05, 2010 5:40 am    Post subject: Add image files to ooo extension Reply with quote

I created a Dialog with imagecontiners containing images I have on my Desktop.

When I created the oxt and I installed it on another computer the dialog was without the images.

I tried to put them into the oxt file. But after this operation how I can say to my dialog to use that images?


Echidna21
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1453
Location: France

PostPosted: Thu Aug 05, 2010 6:12 am    Post subject: Reply with quote

Hi,
You can get the address of your installed extension, see Dev'Guide here.
Once you have the location of this folder, complete the URL with the address of your image.
Store the URL into yourControl.Model.ImageURL
_________________
Bernard

OpenOffice.org 1.1.5 fr / Apache OpenOffice 4.0.1 / LibreOffice 4.1.0
MS-Windows 7 Home SP1
This forum is spammed, use instead Apache OpenOffice forums
Back to top
View user's profile Send private message Visit poster's website
echidna21
General User
General User


Joined: 21 Jul 2010
Posts: 5

PostPosted: Fri Aug 06, 2010 1:47 am    Post subject: Reply with quote

It work! Very Happy

Thank you very much!

Echidna21
Back to top
View user's profile Send private message
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