0

I have found out that myAppointment.RTFBody appeared with Outlook 2010.
The problem is that I don't know how to use it.
I copied an example from http://msdn.microsoft.com/en-us/library/aa287595(v=vs.71).aspx

myAppointment.RTFBody = @"{\rtf1\ansi This is in \b bold\b0.}";

unfortunately whatever I put after myAppointment.RTFBody, I receive an error:

System.Runtime.InteropServices.COMException (0xB9B0FFFF): The operation failed.

Can yo please help me with creating proper appointment with BOLD text in it?

THX in advance.

Edited by VasquezPL: small errors

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by Momerath
0

I heared that RTFBody need some binary stuff to put in...Anybody heared about it?

0

Did you read the documentation on that page? It says, in case you didn't, that you can get the String from the bytes by using System.Text.Encoding.AsciiEncoding. Did you read about that class? Did you notice the GetBytes method?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.