Forms error - Rules issue?

B

bottle

We contracted a designer to create an outlook form for us. I asked
the designer to summarize what the form is doing which is below.

“The form has a msflex grid component. When the form loads we are
loading data from a sql server and populating this grid. This is the
part that is triggering the security warning.”

We are getting errors and warnings on the client computers (xp box
with office 2003) and cannot figure out where they are coming from. I
am posting in this forum as I believe our server is forcing a policy
that is causing the issue. Problem is that I don’t know how to solve
it. Any assistance would be greatly appreciated. The errors we are
receiving when using the form are listed below. We have an SBS 2003
server w/ service pack 2

Notification
Microsoft Forms
to help prevent malicious code from running, one or more objects in
this form were not loaded. For more information contract you
administrator.

Error
Event Management System
adxoutlookevents_Newinspector.error while opening the new item. Error
returned was could not find the specified object at
microsoft.visualbasic.compilerServices.latebinding.lateget.......

Error
Script Error
Could not find the specified object. Line No:7
 
S

Sue Mosher [MVP]

See http://outlookcode.com/article.aspx?id=67, the section on Blocked
ActiveX Controls.

If you want help with code, you'll need to provide the actual statement. We
have no way of knowing what code line 7 contains.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


We contracted a designer to create an outlook form for us. I asked
the designer to summarize what the form is doing which is below.

“The form has a msflex grid component. When the form loads we are
loading data from a sql server and populating this grid. This is the
part that is triggering the security warning.”

We are getting errors and warnings on the client computers (xp box
with office 2003) and cannot figure out where they are coming from. I
am posting in this forum as I believe our server is forcing a policy
that is causing the issue. Problem is that I don’t know how to solve
it. Any assistance would be greatly appreciated. The errors we are
receiving when using the form are listed below. We have an SBS 2003
server w/ service pack 2

Notification
Microsoft Forms
to help prevent malicious code from running, one or more objects in
this form were not loaded. For more information contract you
administrator.

Error
Event Management System
adxoutlookevents_Newinspector.error while opening the new item. Error
returned was could not find the specified object at
microsoft.visualbasic.compilerServices.latebinding.lateget.......

Error
Script Error
Could not find the specified object. Line No:7
 
B

bottle

Thanks for your post. I am including the code from the form.
Unfortunately the desginer believes that this is a security issue that
is being controlled by our server, we just cant figure out where to
modify the rules.

Function Item_Open()
Set Page = GetInspector.ModifiedFormPages("Event Details")
Page.Controls("dtAnnouncement").height=17
Page.Controls("dtAnnouncement").width=105
Page.Controls("dtAnnouncement").value = Date()

Page.Controls("msfgArtist").height=99
Page.Controls("msfgArtist").width=463

Page.Controls("msfgPromotion").height=99
Page.Controls("msfgPromotion").width=463
End Function

The page has a MSFlexGrid control. Line 7 sets height on this control.
The security feature is preventing this.
 
S

Sue Mosher [MVP]

Did you read the article I suggested? It contains information about security
issues related to using non-Outlook controls. It's usually an issue only
with one-off forms, which shouldn't be running code at all, unless the
network administrator is allowing code to run behind one-off forms. However,
it looks like there is also an add-in involved, not just a custom form. The
Event Management System error you shared is not coming from the form code.

As for the second error, if line 7 in the form code is this statement:

Page.Controls("msfgArtist").height=99

the "Could not find the specified object" error message suggests that the
Event Details page has no control named msfgArtist or that the control
cannot be loaded.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Thanks for your post. I am including the code from the form.
Unfortunately the desginer believes that this is a security issue that
is being controlled by our server, we just cant figure out where to
modify the rules.

Function Item_Open()
Set Page = GetInspector.ModifiedFormPages("Event Details")
Page.Controls("dtAnnouncement").height=17
Page.Controls("dtAnnouncement").width=105
Page.Controls("dtAnnouncement").value = Date()

Page.Controls("msfgArtist").height=99
Page.Controls("msfgArtist").width=463

Page.Controls("msfgPromotion").height=99
Page.Controls("msfgPromotion").width=463
End Function

The page has a MSFlexGrid control. Line 7 sets height on this control.
The security feature is preventing this.
 
B

bottle

Thank you for the article link. I did try making the registry edits
but to no avail. I think a rule is being introduced by our sbs 2003
server. Just don't know where to look. Any other suggestions?
 
S

Sue Mosher [MVP]

Have you checked with your own email administrators? Looked to see if
they've set up security in the Outlook Security Settings public folder?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Thank you for the article link. I did try making the registry edits
but to no avail. I think a rule is being introduced by our sbs 2003
server. Just don't know where to look. Any other suggestions?
 
S

Sue Mosher [MVP]

Exactly where I said to look: In the Public Folders hierarchy. Outlook
Security Settings, if present, is always a top-level folder under Public
Folders\All Folders.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Any idea where to check these security settings on an sbs 2003 box?
 
B

bottle

Outlook Security settings are not present. Any other suggestions?
Thanks in advance.
 
S

Sue Mosher [MVP]

The only other thing I can think of is that maybe the flexgrid control
wasn't properly registered so it can't load. That's not an Outlook issue,
but an issue with the custom application's setup.

I don't think this has anything to do with your SBS server.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Outlook Security settings are not present. Any other suggestions?
Thanks in advance.
 
B

bottle

The form loads if we make the registry changes suggested in the link
you provided. Does that rule out a problem with the registration of
the control?
 
S

Sue Mosher [MVP]

I'm totally confused now. Didn't you post earlier:

If so, then what's the problem?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


The form loads if we make the registry changes suggested in the link
you provided. Does that rule out a problem with the registration of
the control?
 

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