Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / June 2006

Tip: Looking for answers? Try searching our database.

Error message from VB Script

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hasse - 03 May 2006 10:22 GMT
Hi,

When trying to collect information from our Active Directory some users gets
these messages.
Internet Explorer:
An Active X control on this page might be unsafe to interact with other
parts of the page. Do you want to allow this action?
Microsoft Office InfoPath:
A run-time error has occured.
Do you want to debug?
The following error occurred:
ActiveX component can't create object: 'GetObject'
File:script.vbs
Line:36

This is my code:
"Sub XDocument_OnLoad(eventObj)
Set sysinfo = CreateObject("ADSystemInfo")
Set oUser = GetObject("LDAP://" & sysinfo.UserName & "")
On Error Resume Next
End Sub"

Any ideas on how to solve this?

Regards,
Hans
Kalyan Reddy - 02 Jun 2006 13:14 GMT
Hi Hasse,

Try with the DeleteAll method. This collects all the Errors and delete all
them.
XDocument.Errors.DeleteAll();

Signature

Kalyan Reddy
Visit http://www.autonomysystems.com

> Hi,
>
[quoted text clipped - 22 lines]
> Regards,
> Hans
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.