PC Review


Reply
Thread Tools Rate Thread

Automation and Access to Outlook Appointments

 
 
Guy
Guest
Posts: n/a
 
      11th Jun 2008
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




 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      11th Jun 2008
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" <(E-Mail Removed)> wrote in message
news:4DAB5E29-8C2C-4BF6-9C19-(E-Mail Removed)...
> 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
>
>
>
>

 
Reply With Quote
 
 
 
 
Guy
Guest
Posts: n/a
 
      12th Jun 2008
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



"(E-Mail Removed)" 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" <(E-Mail Removed)> wrote in message
> news:4DAB5E29-8C2C-4BF6-9C19-(E-Mail Removed)...
> > 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
> >
> >
> >
> >

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      12th Jun 2008
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" <(E-Mail Removed)> wrote in message news:C110837D-AA13-45F9-A722-(E-Mail Removed)...
> 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
>
>
>
> "(E-Mail Removed)" 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" <(E-Mail Removed)> wrote in message
>> news:4DAB5E29-8C2C-4BF6-9C19-(E-Mail Removed)...
>> > 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
>> >
>> >
>> >
>> >

 
Reply With Quote
 
Guy
Guest
Posts: n/a
 
      12th Jun 2008
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" <(E-Mail Removed)> wrote in message news:C110837D-AA13-45F9-A722-(E-Mail Removed)...
> > 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
> >
> >
> >
> > "(E-Mail Removed)" 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" <(E-Mail Removed)> wrote in message
> >> news:4DAB5E29-8C2C-4BF6-9C19-(E-Mail Removed)...
> >> > 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
> >> >
> >> >
> >> >
> >> >

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access automation leaves Excel open which in turn locks 2nd automation attempts EagleOne@discussions.microsoft.com Microsoft Access 8 30th Jun 2008 01:27 AM
Outlook Automation Automation Problem Out of Memory MikeA Microsoft Outlook VBA Programming 7 30th Jul 2007 02:31 PM
Supressing the ctrl-c and other keys during word automation in automation apondu Microsoft Word Document Management 0 19th Jul 2007 10:15 PM
Supressing the ctrl-c and other keys during word automation in automation apondu Microsoft ASP .NET 0 19th Jul 2007 10:10 PM
Supressing the ctrl-c and other keys during word automation in automation apondu Microsoft Excel Programming 0 19th Jul 2007 10:10 PM


Features
 

Advertising
 

Newsgroups
 


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