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

Automation and Access to Outlook Appointments



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 11th 08, 03:06 AM posted to microsoft.public.outlook.program_vba
guy
external usenet poster
 
Posts: 33
Default Automation and Access to Outlook Appointments

Hi All,

Sorry but a relative newbie when it comes to Outlook programming.

Currently using Office 2007. From Access I create an appointment - A
Delivery or Collection Docket - in Outlook using Automation. The docket (body
of the appointment) contains information such as customer and delivery
addresses, contact details including phone number, equipment to be
delivered/collected, any special instructions and space for driver and
customer signatures.

The appointments/dockets are subsequently tracked by the van driver manager
and printed using the default memo style by our van drivers.

This all works fine, however, everything is in plain text format and looks
fairly ordinary. I would like to use fonts, tables and formatting to improve
the printed result, and reduce the size of the overall output.

Can you help?

Should I be using a custom outlook form or report? If so I would I use
automation from outlook to populate it?

Your assistance appreciated

Guy




Ads
  #2  
Old June 11th 08, 05:12 PM posted to microsoft.public.outlook.program_vba
Guest
 
Posts: n/a
Default Automation and Access to Outlook Appointments

The main question is why is are these Appointment items using the Plain Text
format? Are they being sent over the Internet (rather than Exchange) and
are being converted from HTML to Plain Text because of your Outlook
settings? Are you setting the Inspector.EditorType property to anything
other than olEditorWord (4) when you create the Appointment in Access?

If you want to change the formatting of message body text, you need to use
the Word Object Model with Outlook 2007. You can get a WordDocument object
from the Inspector.WordEditor property.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
NEW! - Try Picture Attachments Wizard 2.0 For Microsoft Outlook -
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


"Guy" wrote in message
...
Hi All,

Sorry but a relative newbie when it comes to Outlook programming.

Currently using Office 2007. From Access I create an appointment - A
Delivery or Collection Docket - in Outlook using Automation. The docket
(body
of the appointment) contains information such as customer and delivery
addresses, contact details including phone number, equipment to be
delivered/collected, any special instructions and space for driver and
customer signatures.

The appointments/dockets are subsequently tracked by the van driver
manager
and printed using the default memo style by our van drivers.

This all works fine, however, everything is in plain text format and looks
fairly ordinary. I would like to use fonts, tables and formatting to
improve
the printed result, and reduce the size of the overall output.

Can you help?

Should I be using a custom outlook form or report? If so I would I use
automation from outlook to populate it?

Your assistance appreciated

Guy




  #3  
Old June 12th 08, 02:02 AM posted to microsoft.public.outlook.program_vba
guy
external usenet poster
 
Posts: 33
Default Automation and Access to Outlook Appointments

G'day Eric,

Thank you for your response.

The appointments are stored in a public exchange calendar. I wasn't aware
that HTML was available with appointment items. I did try to set .bodyformat
to HTML but it failed.

I also wasn't aware that I could use the word object model with outlook to
format and create text. I assume this means I could create a formatted
document with fields as place holders and then just populate the fields from
access and set the outlook body appropriately (or some similar mechanism).

Will investigate further.

Your assistance appreciated.
Guy



" wrote:

The main question is why is are these Appointment items using the Plain Text
format? Are they being sent over the Internet (rather than Exchange) and
are being converted from HTML to Plain Text because of your Outlook
settings? Are you setting the Inspector.EditorType property to anything
other than olEditorWord (4) when you create the Appointment in Access?

If you want to change the formatting of message body text, you need to use
the Word Object Model with Outlook 2007. You can get a WordDocument object
from the Inspector.WordEditor property.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
NEW! - Try Picture Attachments Wizard 2.0 For Microsoft Outlook -
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


"Guy" wrote in message
...
Hi All,

Sorry but a relative newbie when it comes to Outlook programming.

Currently using Office 2007. From Access I create an appointment - A
Delivery or Collection Docket - in Outlook using Automation. The docket
(body
of the appointment) contains information such as customer and delivery
addresses, contact details including phone number, equipment to be
delivered/collected, any special instructions and space for driver and
customer signatures.

The appointments/dockets are subsequently tracked by the van driver
manager
and printed using the default memo style by our van drivers.

This all works fine, however, everything is in plain text format and looks
fairly ordinary. I would like to use fonts, tables and formatting to
improve
the printed result, and reduce the size of the overall output.

Can you help?

Should I be using a custom outlook form or report? If so I would I use
automation from outlook to populate it?

Your assistance appreciated

Guy




  #4  
Old June 12th 08, 03:45 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automation and Access to Outlook Appointments

The bodies of appointments are always rich-text, not HTML or even plain text. If you set the Body property, the content will appear in the font that the user has set as their default for messages.

As Eric indicated, if you want a formatted appointment body, you can use Inspector.WordEditor to return a Word.Document object, on which you can then use Word methods to manipulate the content.

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


"Guy" wrote in message ...
G'day Eric,

Thank you for your response.

The appointments are stored in a public exchange calendar. I wasn't aware
that HTML was available with appointment items. I did try to set ..bodyformat
to HTML but it failed.

I also wasn't aware that I could use the word object model with outlook to
format and create text. I assume this means I could create a formatted
document with fields as place holders and then just populate the fields from
access and set the outlook body appropriately (or some similar mechanism).

Will investigate further.

Your assistance appreciated.
Guy



" wrote:

The main question is why is are these Appointment items using the Plain Text
format? Are they being sent over the Internet (rather than Exchange) and
are being converted from HTML to Plain Text because of your Outlook
settings? Are you setting the Inspector.EditorType property to anything
other than olEditorWord (4) when you create the Appointment in Access?

If you want to change the formatting of message body text, you need to use
the Word Object Model with Outlook 2007. You can get a WordDocument object
from the Inspector.WordEditor property.



"Guy" wrote in message
...
Hi All,

Sorry but a relative newbie when it comes to Outlook programming.

Currently using Office 2007. From Access I create an appointment - A
Delivery or Collection Docket - in Outlook using Automation. The docket
(body
of the appointment) contains information such as customer and delivery
addresses, contact details including phone number, equipment to be
delivered/collected, any special instructions and space for driver and
customer signatures.

The appointments/dockets are subsequently tracked by the van driver
manager
and printed using the default memo style by our van drivers.

This all works fine, however, everything is in plain text format and looks
fairly ordinary. I would like to use fonts, tables and formatting to
improve
the printed result, and reduce the size of the overall output.

Can you help?

Should I be using a custom outlook form or report? If so I would I use
automation from outlook to populate it?

Your assistance appreciated

Guy




  #5  
Old June 12th 08, 04:05 AM posted to microsoft.public.outlook.program_vba
guy
external usenet poster
 
Posts: 33
Default Automation and Access to Outlook Appointments

Thanks Sue,

Working on this as we speak.

Guy

"Sue Mosher [MVP-Outlook]" wrote:

The bodies of appointments are always rich-text, not HTML or even plain text. If you set the Body property, the content will appear in the font that the user has set as their default for messages.

As Eric indicated, if you want a formatted appointment body, you can use Inspector.WordEditor to return a Word.Document object, on which you can then use Word methods to manipulate the content.

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


"Guy" wrote in message ...
G'day Eric,

Thank you for your response.

The appointments are stored in a public exchange calendar. I wasn't aware
that HTML was available with appointment items. I did try to set ..bodyformat
to HTML but it failed.

I also wasn't aware that I could use the word object model with outlook to
format and create text. I assume this means I could create a formatted
document with fields as place holders and then just populate the fields from
access and set the outlook body appropriately (or some similar mechanism).

Will investigate further.

Your assistance appreciated.
Guy



" wrote:

The main question is why is are these Appointment items using the Plain Text
format? Are they being sent over the Internet (rather than Exchange) and
are being converted from HTML to Plain Text because of your Outlook
settings? Are you setting the Inspector.EditorType property to anything
other than olEditorWord (4) when you create the Appointment in Access?

If you want to change the formatting of message body text, you need to use
the Word Object Model with Outlook 2007. You can get a WordDocument object
from the Inspector.WordEditor property.



"Guy" wrote in message
...
Hi All,

Sorry but a relative newbie when it comes to Outlook programming.

Currently using Office 2007. From Access I create an appointment - A
Delivery or Collection Docket - in Outlook using Automation. The docket
(body
of the appointment) contains information such as customer and delivery
addresses, contact details including phone number, equipment to be
delivered/collected, any special instructions and space for driver and
customer signatures.

The appointments/dockets are subsequently tracked by the van driver
manager
and printed using the default memo style by our van drivers.

This all works fine, however, everything is in plain text format and looks
fairly ordinary. I would like to use fonts, tables and formatting to
improve
the printed result, and reduce the size of the overall output.

Can you help?

Should I be using a custom outlook form or report? If so I would I use
automation from outlook to populate it?

Your assistance appreciated

Guy





 




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
Access Email Automation Emma Hope Outlook and VBA 5 April 28th 08 06:54 PM
Access Automation Bob Barnes Outlook and VBA 3 March 9th 08 10:54 PM
Outlook Automation Contact Photo Access Alexander Add-ins for Outlook 7 October 11th 07 06:48 PM
Outlook Automation Automation Problem Out of Memory MikeA[_2_] Outlook and VBA 7 July 30th 07 02:31 PM
outlook 2007 automation from Access phleduc Outlook - General Queries 6 June 25th 07 08:48 PM


All times are GMT +1. The time now is 05:24 PM.


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.