473,412 Members | 3,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

link to microsoft office

hi..i want to know how to link to microsot outlook from my windows form. i am using C# 2.0 and vs 2005 2.0.
suppose i click a button, it then will link to microsoft outlook
Jan 29 '08 #1
5 996
radcaesar
759 Expert 512MB
System.Diagnostics.Process.Start("C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" );
Jan 29 '08 #2
System.Diagnostics.Process.Start("C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" );
thanks alot!!!
the final code is supposed to be like this for those who might be looking:
System.Diagnostics.Process.Start(@"C:\Program Files\Microsoft Office\OFFICE12\OUTLOOK.EXE" );
Jan 29 '08 #3
r035198x
13,262 8TB
thanks alot!!!
the final code is supposed to be like this for those who might be looking:
System.Diagnostics.Process.Start(@"C:\Program Files\Microsoft Office\OFFICE12\OUTLOOK.EXE" );
As you have discovered by now, the code depends on the version of office installed. It also assumes that office is installed in a specific path.
The general advice is usually to code to the interface rather than to the implementation.
Jan 29 '08 #4
RedSon
5,000 Expert 4TB
As you have discovered by now, the code depends on the version of office installed. It also assumes that office is installed in a specific path.
The general advice is usually to code to the interface rather than to the implementation.
Alas...this can only be done if you can tell the difference between interface and implementation.
Jan 29 '08 #5
r035198x
13,262 8TB
Alas...this can only be done if you can tell the difference between interface and implementation.
It's usually straight forward. Just write programs which makes the least amount of assumptions.
Jan 30 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
0
by: Vilmar Brazăo de Oliveira | last post by:
Hi, I am having err when creating link to each line of grid at LINE 38. My objective in asp.net is: each line can be linked to page with your parameters as VB 5/6, Delphi 5/6/7, etc.... See the...
4
by: Lisa | last post by:
Hi - I'm able to open excel workbooks and word documents, but I can't seem to copy excel charts, named ranges, etc. to a word document. Anyone know of good reference material in this area? What...
2
by: William LaMartin | last post by:
I have created a program that allows for the automation of things in Word documents, like changing the values of DocVariables and the links to Excel Sheets. I did it using interoperoperatability,...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
0
by: colleen1980 | last post by:
Macro and button all works fine. It goes to other database and open the form from their. Now only problem is that there are two forms link to each other. When i click on the button it works fine...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
8
by: Neil | last post by:
I just started using Access 2003, and I can't link a SQL Server table. I right-click on the database window; select Link Tables; and select ODBC Databases from the Files of Type dropdown. As soon...
2
by: kevinr | last post by:
Hi, I am brand new to VB, and I am trying to deploy Office 2007 on my network here at work. We used part of this script to do another deployment, and I have taken pieces and tried to edit for this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.