using shellexecute opening dot files

hey

Tried searching this without results.
Im using Shellexecute to open files. When opening .dot files (word template file) from the explorer, word automatically creates a new .doc file, based on the .dot file opened.

But when using shellexecute the .dot file is the one actually opened.

Is there any parameters I need to use in shellexecute in order to make it open .dot files as .doc files in the same way windows does it?

Delphi 7

Thanks for any assistance.

Alex - Norway

Comments

  • : hey
    :
    : Tried searching this without results.
    : Im using Shellexecute to open files. When opening .dot files (word
    : template file) from the explorer, word automatically creates a new
    : .doc file, based on the .dot file opened.
    :
    : But when using shellexecute the .dot file is the one actually opened.
    :
    : Is there any parameters I need to use in shellexecute in order to
    : make it open .dot files as .doc files in the same way windows does
    : it?
    :
    : Delphi 7
    :
    : Thanks for any assistance.
    :
    : Alex - Norway

    maybe you can use shellexecute in the winword.exe and give a parameter as the file path of that you want to open?

    Joe
  • :
    : maybe you can use shellexecute in the winword.exe and give a
    : parameter as the file path of that you want to open?
    :
    : Joe


    yey... found a solution...

    Simply using ShellExecuteAndWait instead of ShellExecute solves the issue..


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories