A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Html text in Task Item



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 11th 09, 12:46 AM posted to microsoft.public.outlook.program_vba
vito[_2_]
external usenet poster
 
Posts: 2
Default Html text in Task Item

I want to insert programmaticaly (vba) an html text in Body, but it doesn't
work.
I can do it in the email body (with htmlbody), but i can not do it in task
item.
Any suggestion
  #2  
Old April 11th 09, 02:40 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Html text in Task Item

Task item bodies are RTF, not HMTL. Your Outlook version is relevant here.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"vito" wrote in message
...
I want to insert programmaticaly (vba) an html text in Body, but it doesn't
work.
I can do it in the email body (with htmlbody), but i can not do it in task
item.
Any suggestion



  #3  
Old April 12th 09, 05:03 PM posted to microsoft.public.outlook.program_vba
vito[_2_]
external usenet poster
 
Posts: 2
Default Html text in Task Item

ok, i do have the book but the problem exactly is : I use access 2007 and
Outlook 2007, in access the field is a rich text but when i pass the value to
task item i get an html text ( with no formatting text).

  #4  
Old April 13th 09, 05:12 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Html text in Task Item

Again, there is no HTML content in task items. In order to insert rich text,
you have to work with the Word.Document object returned
byInspector.WordEditor. In other words, you have to use Word object model
methods. You can't just pass a value.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"vito" wrote in message
...
ok, i do have the book but the problem exactly is : I use access 2007 and
Outlook 2007, in access the field is a rich text but when i pass the value
to
task item i get an html text ( with no formatting text).



  #5  
Old April 14th 09, 01:53 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Html text in Task Item

Here's an additional discussion of this issue:
http://social.msdn.microsoft.com/For...2-fbff26ba3a24.
The KB link that Tim provides shows how to copy RTF content to the clipboard
so it can be pasted into the document using Word objectmodel methods.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Sue Mosher [MVP]" wrote in message
...
Again, there is no HTML content in task items. In order to insert rich
text, you have to work with the Word.Document object returned
byInspector.WordEditor. In other words, you have to use Word object model
methods. You can't just pass a value.

"vito" wrote in message
...
ok, i do have the book but the problem exactly is : I use access 2007 and
Outlook 2007, in access the field is a rich text but when i pass the
value to
task item i get an html text ( with no formatting text).



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003: How to read emails in HTML, Rich Text or Plain Text? Spin[_2_] Outlook - General Queries 2 December 24th 08 05:00 AM
change reply to html vs plain text. option chosen is html konagirl Outlook - Installation 2 May 20th 08 01:58 AM
Difference within HTML/Rich Text/Plain Text vt003 Outlook - General Queries 1 October 3rd 07 06:30 PM
is there a way to set an attached task to an task item instead ofan attachmentitem? David Schwab Outlook and VBA 1 October 12th 06 05:44 AM
problem with rich text (HTML)/plain text Jam Sr Outlook Express 2 July 8th 06 12:50 AM


All times are GMT +1. The time now is 04:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.