Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2008, 11:10 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default Call Outlook

I have a vb application that calls Outlook with an attachment (crystal report). It works fine except for that I do not always know what version of Outlook users have so the Outlook.exe could be in the Office10, Office11 or Office12 folder. Is there a good way to determine or scan to see what version of Outlook is installed and then build the path?

Here is what I have today (which points to Outlook 2007). Some users have Outlook 2003 installed)

Code:
Dim myOutlookString As String = """C:\Program Files\Microsoft Office\OFFICE11\Outlook.exe"" /a """ + myReport + """"
Shell(myOutlookString)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Call outlook ASP.Net dani_adam71 .NET Framework 2.0 1 October 27th, 2008 08:15 AM
Outlook jdhock8865 Beginning VB 6 3 July 9th, 2008 12:01 PM
[Resolved] [2005] Call Outlook in vb application snufse .NET Framework 2.0 1 February 12th, 2008 04:58 PM
[Resolved] [2005] Call Outlook with attachment snufse .NET Framework 2.0 4 February 12th, 2008 09:59 AM
IS it possible to call Outlook from VBScript? nfoliveira VBScript 1 March 19th, 2004 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.