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

Loading Image into Form - Problems

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
aligatrjoe
Newbie
Newbie


Joined: 05 Sep 2010
Posts: 3

PostPosted: Wed Sep 08, 2010 6:25 pm    Post subject: Loading Image into Form - Problems Reply with quote

I have a Form with an Image Control. The Data tab of the Image Control is referencing a File (and path). The Events tab is referencing a Macro and I have tried both Mouse button press and Key Press. I have two problems.
1. I open the Form and get the expected record. The Event option doesn't seem to work. But if I run the Macro via Tools-Macro-Run and select the macro, I get the expected Image in the Image Control. However, I can't move forward to the next record. It appears as though the first record can't be saved with the Image there. In fact the Graphics field of the Image Control now contains the Image's File Name. I have to delete same. I just want to View the Image. I do not want to save the Image with the Record.
2. I can't seem to get the Macro to respond to an Event. I have to manually run the Macro.

As a test, I opened the Form and advanced several Records and then manually ran the Macro. I again got the expected Image, but again, the Graphics field contained the File and Path Name.

Any help would be greatly appreciated.

Bill W.
Back to top
View user's profile Send private message
QuazzieEvil
Super User
Super User


Joined: 17 Jan 2007
Posts: 599
Location: Houston, TX

PostPosted: Wed Sep 08, 2010 6:34 pm    Post subject: Reply with quote

Is the macro stored in a document (Form/Database)? Are macros enabled on the document?

if so, make sure macros are enabled. close the document and reopen it.
_________________
Free Docs @ http://www.baseprogramming.com/resources.html
Book @ lulu.com http://www.lulu.com/content/2455551
Back to top
View user's profile Send private message Visit poster's website
aligatrjoe
Newbie
Newbie


Joined: 05 Sep 2010
Posts: 3

PostPosted: Thu Sep 09, 2010 12:24 pm    Post subject: Loading Image into Form - Problems Reply with quote

I have tried to Enable Macros. I went to Tools-Options-OpenOffice.org-Security. I set the the Allow Macros to the lowest level. Is this what you meant by Enabling Macros? If so, I still have a problem. I still have to Manually run the Macro.
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Thu Sep 09, 2010 1:38 pm    Post subject: Reply with quote

Since OOo 3.1(?) you don't need a macro. Just bind the picture control to a text field with relative path names.

http://user.services.openoffice.org/en/forum/viewtopic.php?t=33534&p=153834#p153834
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
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 Base 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