CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Location
    King of Prussia PA
    Posts
    30

    common dialog in dhtml

    I'm trying to use the common dialog control in a dhtml page, so that a user can select a location for the file. I used the following
    dim x
    set x = CreateObject("mscomdlg:commondialog")
    x.showopen

    The common dialog failed during initialization.

    But if I change showopen to showprinter, it does show the printer box.

    Could someone please direct me to what might be causing my problem.

    As always, any help is greatly appreciated.

    Thank you.



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: common dialog in dhtml

    I use a different approach:
    place an object tag on your html ´page:
    <object id="d" classid="clsid:F9043C85-F6F2-101A-A3C9-08002B2F49FB">
    </object>


    then, when you want to show the open dialog:
    document.all.d.showopen



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured