View Single Post
  #4  
Old September 13th, 2009, 12:59 AM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default dont want to skip spaces

Any other clue?

Not really!

But can you try to get the data directly from SQl Server? (I am not sure
whether that is what you are doing or not)

If not, I have to guess that CRM is alterting the data.

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Thank you Peter for your response.
I am talking about single field and spaces are in the middle of the data. I
have also checked in database and it is ok in there but when it is retrieved
in the mail merge document, spaces are removed. Any other clue?


"Peter Jamieson" wrote:

I've just checked that spaces in the middle of SQL Server data items
(with types CHAR, NCHAR, VARCHAR and NVARCHAR) are preserved here - I've
only checked Vista/Word 2007/SQL Server 2008, but I wouldn't expect Word
to throw away those spaces in other versions either.

So...
a. are the spaces definitily in the middle of the field? If they are
at the beginning or end, e.g. if one field contains "ABC" and the other
contains " DEF", then they probably will be discarded.
b. could CRM be using a SQL View that changes multiple spaces into a
single space (I don't have CRM running here so have no way to check that) ?

Peter Jamieson

http://tips.pjmsn.me.uk
Visit Londinium at http://www.ralphwatson.tv

CRM User wrote:
Hi,

I am using mail merge with Microsoft CRM(SQL Server). I am using MERGEFIELD.
Following data "ABC DEF" from CRM become "ABC DEF" after the mail merge.
Why is it removing my spaces from the data field?