![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi!
I am developing an extensibility add-on. I create a MailItem, populate some fields and throw some text in the body. The problem is that while the text I insert into the body is in Arial font, if I type additional text into the message body it is using Times New Roman. All of my default fonts are set to Arial in the settings and I cannot for the life of me find any way to set the font on text added to the message body. Any help is greatly appreciated. Thanks! |
Ads |
#2
|
|||
|
|||
![]()
What version of Outlook? What message format? If this is HTML are you adding
the text within HTML formatting tags? How are you adding the text? Is WordMail involved? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Vaelek" wrote in message ... Hi! I am developing an extensibility add-on. I create a MailItem, populate some fields and throw some text in the body. The problem is that while the text I insert into the body is in Arial font, if I type additional text into the message body it is using Times New Roman. All of my default fonts are set to Arial in the settings and I cannot for the life of me find any way to set the font on text added to the message body. Any help is greatly appreciated. Thanks! |
#3
|
|||
|
|||
![]()
This is Outlook 2003. I am using HTML format but I do not use any tags.
My function looks as such: Outlook.ApplicationClass olApp = new ApplicationClass(); Outlook.MailItem mailitem = (Outlook.MailItem)olApp.CreateItem(Outlook.OlItemT ype.olMailItem); mailitem.BodyFormat = OlBodyFormat.olFormatHTML; mailitem.Subject = "Incident "; mailitem.Body = "\r\n\r\n\r\n\r\nRegards,\r\n\r\n" + _client.Signature; mailitem.SentOnBehalfOfName = _client.SupportAddress; mailitem.BCC = "; mailitem.Importance = Outlook.OlImportance.olImportanceNormal; mailitem.Display(false); All the text populated in the above code is in Arial font. If I place the cursor above the text and start typing, it switches to Times New Roman. The issue isn't so much that I want to specify the font, I would just like the entire body to be consistent, eg Arial. "Ken Slovak - [MVP - Outlook]" wrote: What version of Outlook? What message format? If this is HTML are you adding the text within HTML formatting tags? How are you adding the text? Is WordMail involved? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Vaelek" wrote in message ... Hi! I am developing an extensibility add-on. I create a MailItem, populate some fields and throw some text in the body. The problem is that while the text I insert into the body is in Arial font, if I type additional text into the message body it is using Times New Roman. All of my default fonts are set to Arial in the settings and I cannot for the life of me find any way to set the font on text added to the message body. Any help is greatly appreciated. Thanks! |
#4
|
|||
|
|||
![]()
You really should be working with HTMLBody in that case and inserting your
text either inside existing formatting tags or using your own formatting tags. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Vaelek" wrote in message ... This is Outlook 2003. I am using HTML format but I do not use any tags. My function looks as such: Outlook.ApplicationClass olApp = new ApplicationClass(); Outlook.MailItem mailitem = (Outlook.MailItem)olApp.CreateItem(Outlook.OlItemT ype.olMailItem); mailitem.BodyFormat = OlBodyFormat.olFormatHTML; mailitem.Subject = "Incident "; mailitem.Body = "\r\n\r\n\r\n\r\nRegards,\r\n\r\n" + _client.Signature; mailitem.SentOnBehalfOfName = _client.SupportAddress; mailitem.BCC = "; mailitem.Importance = Outlook.OlImportance.olImportanceNormal; mailitem.Display(false); All the text populated in the above code is in Arial font. If I place the cursor above the text and start typing, it switches to Times New Roman. The issue isn't so much that I want to specify the font, I would just like the entire body to be consistent, eg Arial. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
font color in signature and email body changes | Ghostrider1965 | Outlook - General Queries | 0 | December 4th 07 05:07 AM |
OWA - Setting default font | ColinMcD | Outlook - Installation | 0 | January 8th 07 02:08 PM |
Changing the font body of an outlook task in vba | Gary F | Outlook and VBA | 2 | June 7th 06 09:20 PM |
Email font size in body changes randomly after the message is sent | [email protected] | Outlook - General Queries | 0 | May 31st 06 11:52 PM |
How do I change the font of a mtg body in calendar details print? | Mike Blasius | Outlook - Calandaring | 0 | February 15th 06 03:53 PM |