Showing posts with label office. Show all posts
Showing posts with label office. Show all posts

Sunday, November 17, 2013

Have “Appear Offline” Option in Office Communicator 2007 Status Menu

AppearOffline1

That “Appear Offline” menu option is _not_ there by default installation of Office Communicator 2007 _but_ you can have it by going through these steps:

1. Click Windows’ Start menu and type regedit in the run command box.

AppearOffline2

2. In the Registry Editor window, go to Computer > HKEY_LOCAL_MACHINE > SOFTWARE > Policies > Microsoft > Communicator

AppearOffline3

3. Right click in the right panel and select New > DWORD (32-bit) Value.

AppearOffline4

4. Key in “EnableAppearOffline” under name and press Enter key.

AppearOffline5

5. Double click the EnableAppearOffline row entry and update it’s value to 1.

AppearOffline6

6. Exit Office Communicator 2007 and launch it again to see the Appear Offline menu option among the available Status options.

Thursday, December 10, 2009

Outlook Emailer

Problem: I want to send email with important information to my 450 friends at one time. The email should be in HTML format, with appropriate font style, size, and color, and some images.

Solution: Let's capitalize MS Office Outlook and creating an application utilizing
Visual Studio Tools for Office. Visual Studio Tools for Office is bundled with Visual Studio 2008. Thus, installing the latter gives the developer access to the former. Now, open a new Windows Forms Application project then add

  • Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0
  • Office
  • Microsoft.Office.Interop.Outlook
as References. Next, design the form.


Then, add code to the Send button. First things first:

using Microsoft.VisualStudio.Tools.Applic
ations.Runtime;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;

Then

private void btnSend_Click(object sender, EventArgs e)
{
try {
Outlook.Application _app = new Outlook.Application();
Outlook.MailItem mailItem = _app.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
mailItem.Subject = txtSubject.Text;
mailItem.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;
mailItem.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceHigh;
mailItem.HTMLBody = txtMessage.Text;
mailItem.BCC = txtTo.Text;
mailItem.Display(false);
mailItem.Send();
MessageBox.Show("Message has been sent!");
}
catch (Exception ex) {
MessageBox.Show(ex.Message);
}
}