Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Lotus be setup to read Outlook .msg files

Status
Not open for further replies.

pjwmwkl

Programmer
Oct 20, 2003
1
GB
Hi,

We have outlook messages stored as .msg in our document management system (Documentum). These really need to stay unaltered, and under our control, as they are contractually binding ... we don't want any alterations. Our client uses Lotus and would like to view these files.

We could write a process to go through them and get the message text and any attachments etc and link these as renditions of the file ... but before we do this!, does anyone know if you can set up Lotus to read .msg files. It would save us messing around especially with messages with embedded images/html etc.

Any advise greatly appreciated.
Thanks,
Paul
 
Which version of Outlook and Approach?

With LotusScript, you can call the ShellExecute API function an open the .msg in an Outlook Inspector.
Code:
'(Globals - Declarations)
Public Const SW_SHOWMAXIMIZED = 3
Public Const SW_SHOWMINIMIZED = 2
Public Const SW_SHOWNORMAL = 1

Declare Public Function ShellExecute Lib _
"shell32.dll" Alias "ShellExecuteA" _
(Byval hwnd As Long, Byval lpOperation As String, _
Byval lpFile As String, Byval lpParameters As String, _
Byval lpDirectory As String, Byval nShowCmd As Long) As Long
'______________________________________
Public Sub sOpenFile(Byval strFilename As String)

 '--- Given a filename, opens it in its registered application	
 Dim hWnd As Long  'Handle to Approach window
	
 hWnd = CurrentApplication.ApplicationWindow.GetHandle
	
 ShellExecute hWnd, "open", _
 strFilename, "", "", SW_SHOWNORMAL

End Sub
Then you could create a dialog, list the files in a combobox and call the above sub to display the user selection.

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top