![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |