Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Permanently Enable Macros in a Particular Document
Permanently Enable Macros in a Particular Document
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Fri Oct 12, 2007 7:52 pm    Post subject: Permanently Enable Macros in a Particular Document

As I was working on my birding database project, I assigned a macro to a button on one of my forms. Since I plan to make the database availalbe to others, I stored the macro in the document.

Now every time I open that form, I'm asked if I want to enable macros. I haven't been able to figure out how avoid this dialog.

I tried adding the path for the folder in which the odb file is located to the "trusted sources" list, but that hasn't fixed it.

My current security level is Medium. I don't want to drop it to to Low.

I might be willing to move it up to High if someone could tell me how to sign macros.

Lorinda
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Oct 12, 2007 7:55 pm    Post subject: Re: Permanently Enable Macros in a Particular Document

Lorinda wrote:
Now every time I open that form, I'm asked if I want to enable macros. I haven't been able to figure out how avoid this dialog.


I am not sure that you can. OOo doesn't wait until a macro starts executing to ask the user if the want to enable macros but, instead, warns people before any macro execution has the possibility of executing.

Patrick
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Fri Oct 12, 2007 8:08 pm    Post subject:

The settings in NeoOffice>Preferences>NeoOffice>Security>Macro Security seem to imply that confirmation can be avoided in some cases. And I didn't get this warning when the macros were stored in MyMacros in my preferences folder. But it wouldn't be the first time that OOo code didn't work the way the settings imply. Wink Or maybe I'm just reading it wrong.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Oct 12, 2007 8:40 pm    Post subject:

Well, the key difference is that a standalone macro can only be executed on way: by explicitly opening and executing it. In contrast, embedding macros in documents can profoundly affect how they are rendered and/or behavior depending on the user's security level. This is probably why the OOo engineers put a lot more warnings for embedded macros than for standalone.

Patrick
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Sun Dec 02, 2007 6:47 am    Post subject:

Thanks to a post in the new OpenOffice.org Community Forum, I now know that the behavior I am seeing is a Issue 73705: macros in embedded forms always trigger the warning, even if the odb file containing the form is in a trusted directory. It is slated to be fixed in 2.4.

Just thought I'd mention it for future searchers.

Lorinda
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
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
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.