> In cases like that there's a control character there usually as well as
> possibly an actual space. You'd have to examine the text of the
> BusinessAddressStreet property. You may find that you can't just blindly
> put in the text from those properties but must do some text massaging to
> get things the way you want them to look (or live with how they look now).
>
> --
> 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>
>
> "J.R. Winder" <jwinder[ at ]Daystarinc.com> wrote in message
> news:u2zIJ2hLJHA.3764[ at ]TK2MSFTNGP04.phx.gbl...
>> My dev group has developed and addin for Outlook 07 that enables
>> 'Contact' fields to be merged into MS Word 07 templates. The addin works
>> fine however the second line within the 'Business Address' field is
>> including a leading space when merging the field data into the Word
>> template.
>>
>> This is an example of how the fields are setup in the Template:
>> <FullName>
>> <CompanyName>
>> <BusinessAddressStreet>
>> <BusinessAddressCity>, <BusinessAddressState>
>> <BusinessAddressPostalCode>
>>
>> ...and this is an example of how the data looks once the fields are
>> merged into the Word doc:
>> John Doe
>> John Does Landscaping
>> 55 Main Street
>> Unit 4
>> Portsmouth, NH 03801
>>
>> To me the logical cause to the leading space is due to there being two
>> 'street' address lines. However the available fields within Outlook
>> Contact's does not include an <BusinessAddressStreet1> and/or
>> <BusinessAddressStreet2>
>>
>> Any thoughts on how to eliminate the leading space?
>>
>> Thanks
>> JR
>