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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Business Address: Format



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 14th 08, 05:54 PM posted to microsoft.public.outlook.program_addins
J.R. Winder
external usenet poster
 
Posts: 4
Default Business Address: Format

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

Ads
  #2  
Old October 14th 08, 06:21 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Business Address: Format

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" wrote in message
...
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


  #3  
Old October 14th 08, 08:31 PM posted to microsoft.public.outlook.program_addins
J.R. Winder
external usenet poster
 
Posts: 4
Default Business Address: Format

Thanks Ken-
Do you know of anything I can do within the template that would eliminate
the control character and/or the actual space once the contact fields are
merged?

"Ken Slovak - [MVP - Outlook]" wrote in message
...
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" wrote in message
...
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



  #4  
Old October 14th 08, 08:51 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Business Address: Format

Nothing that I know of just using a template, you'd have to write code for
that.

--
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" wrote in message
...
Thanks Ken-
Do you know of anything I can do within the template that would eliminate
the control character and/or the actual space once the contact fields are
merged?


  #5  
Old October 14th 08, 09:10 PM posted to microsoft.public.outlook.program_addins
J.R. Winder
external usenet poster
 
Posts: 4
Default Business Address: Format

thanks. I'll get one my programmers to do just that.

JR

"Ken Slovak - [MVP - Outlook]" wrote in message
...
Nothing that I know of just using a template, you'd have to write code for
that.

--
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" wrote in message
...
Thanks Ken-
Do you know of anything I can do within the template that would eliminate
the control character and/or the actual space once the contact fields are
merged?



 




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
home address rather than business address as default for conta Housebz Outlook - Using Contacts 3 December 18th 09 02:20 AM
Copying the "format" of a Business Card John Outlook - Using Contacts 1 March 28th 07 02:07 PM
Outlook 2007 Edit Business Card Format BobB Outlook - General Queries 2 October 5th 06 08:09 PM
Get full contact format in Business Contact JackJ Outlook - Using Contacts 0 September 19th 06 10:26 PM
How to only show business address from Contact in address LBServaas Outlook - Using Contacts 1 February 13th 06 04:12 PM


All times are GMT +1. The time now is 03:37 AM.


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