Opening MSG files using SHELL

fancy101
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
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
0
Comments
-
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);
0 -
Do you make it right, it works too!0
-
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 email0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions