To help prevent .. objects were not loaded

D

David Sackstein

Hi all,
I created a custom form with some VBScript behind.
Sometimes I get the message above. (Outlook 2007 and 2003)
I enabled the "Allow script in shared folders" and "Allow script in public
folders".
I made sure that in the registry:
under HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Security\ both
PublicFolderScript and SharedFolderScript are enabled.
(by the way I noticed the GUI and the registry keys dont always agree).

Anyway the problem is eratic. I cannot yet determine what exactly caused it
to appear and what made it disappear.
This is very frustrating because I need to deliver it to a customer.

Any ideas?

Thanks
David
 
D

David Sackstein

Hi Sue,
Thanks for the quick response.
I have seen that article but I am still confused.
During the course of my development I removed the published forms from my
Personal Folder.
However I do have a copy that I saved as an .otf file.
So this is a one-off. Right?
In order to Publish it to my designated folder I understand that I need to
open it and select Publish To on the Tools / Forms menu.
Well, I never get there, because after double-clicking on the form I am
informed that the code was not loaded. Indeed the Microsoft Spreadsheet 11.0
control I placed on a tab is also gone.
I would imagine that publishing the form wont make them reappear.
Right?
So what did I miss?

Thanks a lot

David
 
S

Sue Mosher [MVP-Outlook]

Yes, an .oft file is a one-off and not suitable for production use. To
publish it, open it with the Tools | Forms | Design This Form command
instead.
 
D

David Sackstein

Hi Sue,
When I open Tools | Forms I have two options:
Choose Form or Design Form.
Both open the same dialog that doesnt give me access to the filesystem (I am
using Outlook 2003, I understand on 2007 it does allow access).
Anyway, on my system I cant use these options to open the .oft file (and
then consequently publish it).
From my experience the Design This Form option appears once I have
successfully opened a form. But, here is the Catch 22, I cant open the form
because its a "one off" and the code is not loaded.

So how can I publish this .oft?
Thanks

David
 
S

Sue Mosher [MVP-Outlook]

In the Tools | Forms | Design Form dialog, you need to choose User Templates
in File System.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
D

David Sackstein

Hi Sue,
Thanks very much for your patience.
This indeed allowed me to publish the form after which, use of the published
form succeeded.
I have forwarded this procedure to my colleague who is testing for the
customer.

But I have one more question, if I may.
By default, so I read, scripting is enabled for forms in public folders but
not in forms for shared folders.
In order to avoid asking each user to find the check box and enable
scripting, I would like to publish to a public folder.
Is this the correct approach?
Who has permissions to publish to a public folder? Anyone?
If this is not the right approach, can you recommend a procedure that would
save us the logistical nightmare of checking the check box on every desktop
in the organization?

Thanks !

David
 
S

Sue Mosher [MVP-Outlook]

The only reason you'd want to publish a custom form to a public folder is so
that users can create items in that folder. Is that what you want to do? If
so, then someone with folder Owner permission must publish the form to the
folder.

The option for allowing scripts to run in custom forms in secondary
mailboxes woud best be managed with Group Policy Objects.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
D

David Sackstein

Hi Sue,

I see.
But could I also supply a simple installation program that would
programmatically change that setting?

By the way, I noticed that setting
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security\[Public |
Shared]FolderScript did not affect the setting of the check box in Outlook
when I restarted it, so maybe the best option would be using automation to
change the setting? (I dont think its because I am blocked from overriding
Group Policy because I am able to change those check boxes through the UI).

Better still could I supply an installation program that would
progammatically publish the form to a folder AND allow customer scripts to
run on forms in that folder?
I might use .Net for this exercise - if its possible.

Thanks again!

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top