Monday, July 12, 2010

C # to call Outlook API launch meeting



In my previous blog post mentioned the SharePoint call outgoing mail server and e-mail address to send mail

However, the methods which can only be used to send regular e-mail. If you want to launch a special meeting of the class of mail, you can use Outlook's own API.

Create a project, it added. NET Reference: "Microsoft.Office.Interop.Outlook" reference, you can call, to note that, in added time, take note OFFICE version.

Initiated the call to the API during the meeting, ran into a problem:

An appointment after you create the entry, looking for a long time for this appointment can not find how to specify the "From", then one would like, Window CF, find personnel information have OutlookSession of the East,

Well, this Outlook will not do the same way, tested, really have to find ways, the original, its API is specified by the sender and your machine running Outlook account settings directly related.

By ApplicationClass.Session.Accounts can find your account settings set, require special special attention is here to take a staff, set the index is a beginning, not

Starting at 0. Find the relevant account, you can AppointmentItem.SendUsingAccount attribute to specify the date of the sender.

--- However, if I Bu Shi Yong Outlook account set in Account Settings, and to specify other's Youjian account to send mail from the get how? And it has not 鎵惧埌 Huo Fa Xian way, Xi Wang Ren Men can know the up

Gets advice channels, Bese first ~ ~ ~ ~

The following is test code, running in WIN2003 + OFFICE12 through, successfully created the meeting:

1using System;

2using System.Collections.Generic;

3using System.Text;

4using Microsoft.Office.Interop.Outlook;

5 ////////////////////

6 / * launch meeting called Outlook api

7 / * mcjeremy@cnblogs.com

8 ////////////////////

9namespace OutlookAPI

10 (

11 class Program

12 (

13 static void Main (string [] args)

14 (

15 try

16 (

17 ApplicationClass oApp = new Microsoft.Office.Interop.Outlook.ApplicationClass ();

18

19 / / meeting is an appointment

20 AppointmentItem oItem = (AppointmentItem) oApp.CreateItem (OlItemType.olAppointmentItem);

21 oItem.MeetingStatus = OlMeetingStatus.olMeeting;

22

23 oItem.Subject = "topic";

24

25 oItem.Body = "content";

26

27 oItem.Location = "place";

28

29 / / start time

30 oItem.Start = DateTime.Now.AddDays (1);

31

32 / / end time

33 oItem.End = DateTime.Now.AddDays (2);

34

35 / / alert settings

36 oItem.ReminderSet = true;

37 oItem.ReminderMinutesBeforeStart = 5;

38

39 / / if all-day event

40 oItem.AllDayEvent = false;

41

42 oItem.BusyStatus = OlBusyStatus.olBusy;

43

44 / / index starts with 1 instead of 0

45 / / sender's account information

46 oItem.SendUsingAccount = oApp.Session.Accounts [2];

47

48 / / Add the necessary selection

49 Recipient force = oItem.Recipients.Add ("mailuser2@mailserver.com");

50 force.Type = (int) OlMeetingRecipientType.olRequired;

51 / / Add optional person

52 Recipient opt = oItem.Recipients.Add ("mailuser3@p.mailserver.com");

53 opt.Type = (int) OlMeetingRecipientType.olOptional;

54 / / Add the meeting initiator

55 Recipient sender = oItem.Recipients.Add ("mailuser1@mailserver.com");

56 sender.Type = (int) OlMeetingRecipientType.olOrganizer;

57

58 oItem.Recipients.ResolveAll ();

59

60 / / oItem.SaveAs ("d: / TEST.MSG", OlSaveAsType.olMSG);

61

62 oItem.Send ();

63

64 / / MailItem mItem = (MailItem) oApp.CreateItem (OlItemType.olMailItem);

65 / / Recipient rTo = mItem.Recipients.Add ("****");

66 / / rTo.Type = (int) OlMailRecipientType.olTo;

67 / / Recipient rCC = mItem.Recipients.Add ("****");

68 / / rCC.Type = (int) OlMailRecipientType.olCC;

69 / / Recipient rBC = mItem.Recipients.Add ("****");

70 / / rBC.Type = (int) OlMailRecipientType.olBCC;

71

72 Console.WriteLine ("OK");

73)

74 catch (System.Exception ex)

75 (

76 Console.WriteLine (ex.Message);

77)

78

79 Console.ReadLine ();

80)

81)

82)

83







相关链接:



Expert Project Management



WorldCup PDA Converter



Youtube to Flash Guide



Happiness CDA OGG MP3 To VQF Copier



Flv To Mpeg Converter Free



video converter



Video Format For Blackberry



AllRipper Flash to Mobile



Wizard Personal Interest



LasVegas MPEG To IPod



Bliss CD-R M4A RA to DVD-Audio Manager



Convert Avi To Wmv Free Download



MP2 MPC Recorder



Ever CDA APE M4A to Sound Recorder



ALO Audio CENTER



Wednesday, March 17, 2010

Apex Video To AVI Converter


Apex Video To AVI Converter convert mpeg aiv wmv rm mov to avi divx xvid, Extremely fast conversion speed and friendly user interface let you convert any video files to avi divx xvid with ease. The powerful features and unbeatable price make Apex Video To AVI Converter an affordable and powerful video conversion solution on personal computer.
Key features :
1.Convert MPEG, VCD, DVD file to AVI,Xvid,Divx.
2.Convert ASF, WMV to AVI,Xvid,Divx.
3.Convert RM, RMVB to AVI,Xvid,Divx.
4.Convert MOV, QT, QuickTime file to AVI,Xvid,Divx.
5.Support Set the start and end of the video clip to get your desired segment to convert .
6.Support large video files, even large then 2GB.
7.Support Batch Conversion.
8.Satisfying Conversion Speed.
9.Select to automatically shut down your PC after conversion.
10.User-friendly UI with "easy" procedures .
11.Lifetime FREE Technical Support and FREE upgrade Free trial download.30 day money back guarantee.

Sunday, March 7, 2010

Converter DVD to iPhone Free Download


DVD to iPhone Converter, the professional conversion tool, lets you watch DVD movies on your iPhone easily. It is capable of converting DVD to MP4, DVD to MP3, AAC, M4A and WAV with brilliant output quality. In addition, it has more attractive functions:
1. The intuitive and easy interface lets you operate it easily. With a few clicks, the conversion is finished.
2. Rip DVD to video format: MP4 (MPEG-4). Rip DVD to audio formats: MP3, AAC, WAV and M4A.
3. Based on the newest technology, the conversion speed is beyond your imagination and you can enjoy DVD movies on your iPhones freely.
4. You can crop, trim and adjust the video effects like bit rate, frame rate, video size, etc. In the meantime, it offers the function to cut off your unwanted black edges.
5. The product provides the advanced settings for experienced users. You can set the parameters like bit rate, frame rate, video size and so on. Select the appropriate settings for your movies.
6. DVD to iPhone Converter can rip DVD into some titles and chapters. You can select you like to convert. For you it is optional and flexible. After conversion it allows you to merge your selected titles or chapters into a single one.
7. For batch conversion function you can select more than one file to convert by specifying the max processes.
8. No need to download the extra codec for your conversion because of the built-in encoders and decoders.
9. One click can satisfy you for the requirement of capturing the pretty still pictures. All the beautiful images won?t be missed.

Thursday, December 17, 2009

Converter Video to PSP Free Download


Video to PSP Converter is a multifunctional tool to convert video to PSP. With the high speed and good quality, it supports converting AVI, MPG, MP3, MP4, VOB, MOV, AAC, WMV, WMA, 3GP, 3G2, DV, AAC, M4A, etc, to MP4, MP3, AAC, M4A, and WAV. Due to the tremendous power, you can enjoy most videos on your beloved PSP. Besides, the powerful functions will satisfy you. The following is the functions you may like:
1. Video to PSP Converter supports a variety of source video formats, which includes WMV, ASF, WMA, AVI, RMVB, RM, RA, MOV, QT, MP4, M4V, 3GP, 3G2, DAT, MPG, MPEG, MP3, VOB, DV, to PSP video formats containing MP4, MP3, AAC, M4A, WAV.
2. Due to the newest technology, its conversion process can save you a lot you time. In addition, you can enjoy the quality as the original one.
3. It has intuitive and friendly interface and works as a wizard. So you can master the way to operate quickly.
4. By trimming and cropping function, you can customize your videos including removing the black edges, cut out unwanted picture details, and set the start and end time for the created video as you like.
5. For better vision effects, you can have more controls for the video by adjusting advanced parameters containing bit rate, frame rate, and video size etc.
6. You can joint multiple videos into a single one to meet the need of forming a whole video.
7. Collect the charming pictures from playing video for storage on your PC by means of thumbnail function.
8. Without complicate steps and superfluous clicks, you can view and find the converted video with just one click.

Tuesday, December 8, 2009

Converter DVD to Apple TV Free Download


DVD to Apple TV Converter is the professional ripping tool to help you watch DVD movies on your Apple TV more conveniently and comfortably. It can convert DVD to MP4, MP3, AAC, WAV, and M4A with perfect quality. With it, you can enjoy DVD movies freely. Compared with other similar products, it has the attractive features:
1. DVD to Apple TV Converter has the easy and intuitive interface, and you can use it expertly for the first time. It can meet the requirement of the beginners.
2. The software makes it possible to rip and convert DVD to video formats for playback on Apple TV. Rip DVD to video format: MP4 (MPEG-4). Rip DVD to audio format: MP3, M4A, AAC, and WAV.
3. The newest technology makes the conversion speed faster. You can enjoy DVD movies with the high speed and brilliant quality.
4. It allows you to crop and trim for the movie. In addition you can adjust the brightness, contrast, and flip for better effect. For the black edges, cutting off them is possible absolutely.
5. DVD to Apple TV Converter rips DVD into several titles and chapters. You can choose any title or chapters to convert. After conversion you can merge the converted files into a single one.
6. For the experienced users you can set the advanced parameters for better effects including bit rate, frame rate, video size, and so on.
7. During playing video, you can capture the beautiful pictures with one click for richening collection on your PC.
8. Select more than one file to convert by specifying the max processes.
9. As a result of the built in encoders and decoders you don?t have to download the extra codec to continue the process.

Friday, December 4, 2009

Sound Recorder Pro


Sound Recorder Pro, the powerful sound recorder and editor, makes a complete recording studio of your computer. With the recorder you can record voice from microphone, internet streaming audio, or music played by Winamp, Windows Media Player, Quick Time, Real Player, Flash, games, etc. Sound Recorder Pro is able to automatically detect the recording formats your sound card supports and then set the application's parameters for the best possible performance. The recordings can be saved as .mp3, .wav, .wma, .vqf and .ogg files. What makes Sound Recorder Pro more powerful is its editing feature. It can edit audio files as you desire by cutting, copying, pasting, trimmi ng segments and employing various DSP effects. Another useful feature is recording schedule which enables automatic recording, that is, Sound Recorder Pro starts and stops recording at any time you want.

Tuesday, September 15, 2009

Avex DVD to iPod Video Suite


DVD to iPod Video Suite

Avex DVD to iPod Video Suite is a One-click, All-in-One solution to create iPod movies from DVDs, TV shows and home Videos. The software combines DVD to iPod Converter and iPod Video Converter in one package at great discount.

The software features superb Video/Audio quality, the fastest Conversion speed (3x faster). And it's easy to use! A great software for iPod users.

Features
- Convert DVD, Tivo, MPEG, WMV, AVI, DivX/Xvid, RM, MOV Videos, etc to iPod MP4 Video
- Built-in X!-Speed transcode technology. Up to 3x faster than conventional Converter.
- Fully optimized for Dual-Core, HyperThread Processors, SSE2/SSE/MMX/3DNow!
- Support H.264(High quality) and MPEG4 Video in MP4 format used in Apple iPod
- Adjustable Video size for playback on iPod and on TV screen as well.
- Optimized settings for superb Video playback on Video iPod.
- Supports Conversion in batch mode.