Howdy, Stranger!

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

Categories

using shellexecute opening dot files

AlexDimAlexDim Member Posts: 31
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

  • tijoentijoen Member Posts: 141
    : 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
  • AlexDimAlexDim Member Posts: 31
    :
    : 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.