程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> .NET實例教程 >> Create a new Meeting Request in Outlook 2007 using C#

Create a new Meeting Request in Outlook 2007 using C#

編輯:.NET實例教程

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Outlook = Microsoft.Office.Interop.Outlook;
using Microsoft.Office.Core;
using Microsoft.Office.Interop.OutlookVIEwCtl;

namespace CreateMeetingRequest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public void Creat_Request()
        {
            try
            {
                Outlook.Application ap = new Microsoft.Office.Interop.Outlook.Application();
                Outlook.AppointmentItem aPPT = ap.CreateItem(Outlook.OlItemType.olAppointmentItem) as   Outlook.AppointmentItem;
                aPPT.Subject = Subjecttxt.Text.ToString().ToString();
                aPPT.MeetingStatus = Outlook.OlMeetingStatus.olMeeting;
                aPPT.Location = Placetxt.Text.Trim().ToString();
                aPPT.Start = DateTime.Parse(Timetxt.Text.Trim().ToString());       
                aPPT.End = DateTime.Parse(Endtimetxt.Text.Trim().ToString());
                Outlo

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved