Note that there are some explanatory texts on larger screens.

plurals
  1. POComDlg32.ocx Error: Object doesn't support this property or method
    primarykey
    data
    text
    <p>I'm developing an html editor using <strong>ComDlg32.ocx</strong> (Commom Dialog Control), using HTML and <em>VBScript</em>. My exact requirement was to prompt Open/Save/Color/Print/Font dialog boxes.Ive written code for prompting Save file dialog box. Also I've added a license file using LPK Tool onto my webpage.</p> <p>My html-source looks like:</p> <pre><code>&lt;body&gt; &lt;!-- lpk file --&gt; &lt;object classid="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"&gt; &lt;param name="LPKPath" value="License/comdlg.lpk" /&gt; &lt;/object&gt; &lt;!-- Microsoft Common Dialog Control --&gt; &lt;object classid="CLSID:F9043C85-F6F2-101A-A3C9-08002B2F49FB" codebase="http://activex.microsoft.com/controls/vb6/COMDLG32.CAB" id="objComDlg"&gt;&lt;/object&gt; &lt;/body&gt; </code></pre> <p>Now, here comes my error. Whenever I try to call the vbscript for prompting the Save File dialog box, I'm getting an error as: <strong>Object doesn't support this property or method: 'objComDlg.Filter'</strong></p> <p>If I comment out the <em>objComDlg.Filter</em> then the error move on to <em>objComDlg.DialogTitle</em> and thus it goes on.</p> <p>And my VBScript look like:</p> <pre><code>FILE_FORMATS = "Rich Text Format (*.rtf)|*.rtf|Microsoft Word (*.doc)|*.doc|ANSI Text Document (*.txt)|*.txt" objComDlg.Filter = FILE_FORMATS &lt;--- Error shows here objComDlg.DialogTitle = "Save As " objComDlg.Flags = cdlOFNFileMustExist Or cdlOFNHideReadOnly objComDlg.CancelError = True objComDlg.ShowSave </code></pre> <p>Does anyone have an idea why this is happening? Is there any proper documentation for using this particular ActiveX control? My current development is in stand-still due to this error.</p> <p>BTW, I'm using Windows XP SP3 and IE8 for my development.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload