Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CommonDialog Throws exception

2 views
Skip to first unread message

Nick

unread,
Aug 10, 2005, 2:05:10 PM8/10/05
to
On my machine, i am able run this javascript:

var oCDlg = new ActiveXObject("MsComDlg.CommonDialog");

or use the OBJECT tag
<OBJECT ID="CommonDialog1" WIDTH=0 HEIGHT=0
CLASSID="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB" VIEWASTEXT
CODEBASE="http://activex.microsoft.com/controls/vb5/comdlg32.cab">

<PARAM NAME="CancelError" VALUE="1">
<PARAM NAME="DefaultExt" VALUE="*.xml">
<PARAM NAME="DialogTitle" VALUE="Save">
<PARAM NAME="Filter" VALUE="Infopath (*.xml)|*.xml|All
Files (*.*)|*.*">
</OBJECT>

Everything works as expected. On a coworkers machine, it throws an
exception when trying to access the object because it does not get created.
I think he has the appropriate DLL's. Both of our mahcines are IE 6, XP
(mine is SP2, his is not)

Any help is appreciated.

0 new messages