Microsoft KB Archive/892950

= ActiveX controls that perform cross-domain data binding cannot be used in InfoPath =

Article ID: 892950

Article Last Modified on 4/19/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Office InfoPath 2003
 * Microsoft Office InfoPath 2003, Service Pack 1 (SP1)

-





SYMPTOMS
ActiveX controls that perform cross-domain data binding cannot be used in Microsoft Office InfoPath 2007 or in Microsoft Office InfoPath 2003. When you add an ActiveX control to an InfoPath form, you receive the following error message:

Safety settings on this machine prohibit accessing a data source on another domain.



CAUSE
This problem occurs because InfoPath hosts ActiveX controls in the Internet security zone. Therefore, if an ActiveX control tries to perform cross-domain data binding, the binding is unsuccessful. If your InfoPath form is located in one domain or is published in one domain and an ActiveX control tries to access a data source in another domain, you experience this problem.

Note By default, Microsoft Internet Explorer disables the Access data sources across domains setting in the Internet security zone.



STATUS
This behavior is by design.



Steps to reproduce the problem
Add a Microsoft Office Spreadsheet 11.0 ActiveX control to an InfoPath 2003 form. To do this, follow these steps:  Start InfoPath 2003. On the File menu, click Design a Form. In the Design a Form pane, click New Blank Form. On the Insert menu, click More Controls. In the Controls pane, click Add or Remove Custom Controls. In the Add or Remove Custom Controls dialog box, click Add.</li> In the Add an ActiveX Control dialog box, click Microsoft Office Spreadsheet 11.0, and then click Next four times.</li> Click Finish, and then click OK to add the ActiveX control to the Controls pane.</li> In the Controls pane, add the Microsoft Office Spreadsheet 11.0 control to the form to create a new spreadsheet control.</li> Double-click the new spreadsheet control. In the Microsoft Office Spreadsheet 11.0 Properties dialog box, click the Import tab.</li> In the Data type box, click HTML.</li> In the URL box, type the following:

http://moneycentral.msn.com/scripts/webquote.dll?iPage=qd&Symbol=msft

</li> Click Import Now.

You receive the error message that is mentioned in the &quot;Symptoms&quot; section.

Note If you receive a Microsoft Office 2003 Web Components message box, click Cancel.</li></ol>

For additional information about security guidelines for InfoPath 2003 forms, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/aa662303(office.11).aspx

Additional query words: kbnoOfficeAlertID infopath2003 infopath2007 IE x-domain IP2007

Keywords: kbcontrol kbsecurity kbtshoot kbbug kbprb KB892950

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.