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.