Opening MSG files using SHELL

fancy101fancy101 Member Posts: 2
Hi there,

Does anyone know how to open a .MSG file when calling it using the SHELL function.
I have a client who stores MSG files as BLOB files in Navision V4 SP1. They cannot open the files again beacuse the code to open them in Navision uses HYPERLINK, which has been changed in V4 to only open file extensions that have been specified in the fin.stx file. Microsoft say that they will not alter any fin.stx files but this file extension will be added when SP3 is released.
They advised that I should be using the SHELL command to open the MSG file, but so far I can only open a new message with the message that I want to view attached to it.
I am using the following code:
SHELL(Text000,Filename);
The Text variable TEXT000 = C:\Program Files\Microsoft Office\Office11\Outlook.exe
Filename = Temporary file location.

Thanks in advance

Paul

Comments

  • Torben_R.Torben_R. Member Posts: 99
    If you want to opem a file with the content of a BLOB-field you must calculate the field first and then export it to the file.
    Record.CALCFIELDS(Field);
    c:\temp\file.msg := Record.Field.EXPORT;
    SHELL(Text000,c:\temp\file.msg);
    
  • garakgarak Member Posts: 3,263
    Do you make it right, it works too!
  • rowixrowix Member Posts: 27
    fancy101 wrote:
    Hi there,

    The Text variable TEXT000 = C:\Program Files\Microsoft Office\Office11\Outlook.exe
    Filename = Temporary file location.

    Thanks in advance

    Paul

    I am having the same problem but i found a solution on this page http://office.microsoft.com/nl-nl/outlo ... 11043.aspx
    (its in dutch) the solution is to use a parameter so the shell command would be:

    The Text variable TEXT000 = C:\Program Files\Microsoft Office\Office11\Outlook.exe /f
    Filename = Temporary file location.

    then the .msg file wil be open normal and not as a attatchment on a new email
Sign In or Register to comment.