User Tag List

Results 1 to 5 of 5

Thread: MMF2 Common Dialog - Open a document

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    MMF2 Common Dialog - Open a document

    I want to be able to allow the user to select a document and open it using whatever word processor is the default on their system. I can use the Common dialog to allow the selection and I see the Apecial object to run an external program. I don't want to tell the OS what program to run, just open the document like when someone double clicks on a document.

    Any suggestions?

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: MMF2 Common Dialog - Open a document

    One hacky solution could be to run explorer.exe with the file as the command line like this:

    explorer.exe "c:\myfile.txt"

    (It's probably a good idea to put the file in quotes as there might be spaces in it)

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2 Common Dialog - Open a document

    Yes that works, Thanks Andos.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2 Common Dialog - Open a document

    The File-Folder object can do that (in a fine way ) and can also open a file in the default browser.

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2 Common Dialog - Open a document

    Thanks Sphax I'll give that a try also.

Similar Threads

  1. Help with Common Dialog Object
    By Telephone in forum File Archive
    Replies: 3
    Last Post: 16th February 2011, 09:52 PM
  2. Common Dialog Failure to open.
    By JimJam in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 24th February 2009, 07:52 PM
  3. Common Dialog Object Vista
    By wizkidweb in forum Extension Development
    Replies: 5
    Last Post: 3rd December 2008, 03:31 PM
  4. Common Dialog, Crash at use...?
    By GabSt in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st October 2008, 09:25 PM
  5. Common Dialog Box Crash?
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th December 2007, 04:20 PM

Posting Permissions

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