Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2005

Tip: Looking for answers? Try searching our database.

Odd behaviour merging text with CHR(13)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PaulSilverman - 29 Jul 2005 12:31 GMT
Help, I am trying to merge contract information from a database.
Some "fields" contain "return" characters, or "paragraph marks" i.e. CHR(13)
What I find is that if the field in the merge template is in a table and has
no paragraph mark underneath it, all the "return" characters appear as
squares and the text runs together.
i.e. []15/08/2005 to 14/08/2006 exclusive - []15/08/2006 to 14/08/2008
non-exclusive - note in second excl/non excl period[]

If I add a "return" character to the end of the text, it all comes out fine.
i.e.
15/08/2005 to 14/08/2006 exclusive -
15/08/2006 to 14/08/2008 non-exclusive - note in second excl/non excl period

Can anyone advise if this is some kind of strange setting please.

Many thanks

Paul
Peter Jamieson - 29 Jul 2005 19:35 GMT
I can replicate some of this here using Word 2003 and a simple .txt file as
a data source but have not yet seen the "squares" - just the disappearance
of any new lines when the field is in a table

Which version of Word are you using, what is the data source, and how are
you connecting to it?

In my tests, there are essentially three ways to connect to a .txt file in
Word 2003 - using Word's internal text converter, using an OLEDB provider,
and using ODBC. The problem did not occur at all with OLEDB or ODBC in this
case.

I don't know of a setting which would make the behaviour different, but
trying a different connection method may help if one is available (in Word
2003, check Tools|Options|General|"Confirm conversion at open" to see an
additional dialog box when you try to reconnect tot he data source).

Peter Jamieson

> Help, I am trying to merge contract information from a database.
> Some "fields" contain "return" characters, or "paragraph marks" i.e.
[quoted text clipped - 18 lines]
>
> Paul
PaulSilverman - 03 Aug 2005 16:49 GMT
Peter
Many thanks for your reply. I've tried using OLE and I still get the same
behaviour. Damn!
Unfortunately, there's no easy way to post the file etc here, which I'd
probably not want to do anyway.  I could send them to you if you'd be willing
to look at this further.
Answers to your questions:
- Word 2003 (11.5604.5703)
- Connecting via OLE DB Database Files or Text Files
- File is comma delimeted, first row contains headings

Any further thoughts would be most welcome!

Kind regards

Paul

> I can replicate some of this here using Word 2003 and a simple .txt file as
> a data source but have not yet seen the "squares" - just the disappearance
[quoted text clipped - 37 lines]
> >
> > Paul
Peter Jamieson - 04 Aug 2005 09:35 GMT
You are welcome to send them to me and I'll look a.s.a.p. - you will need to
despam my e-mail address (delete  "killmapS" )

Peter Jamieson

> Peter
> Many thanks for your reply. I've tried using OLE and I still get the same
[quoted text clipped - 62 lines]
>> >
>> > Paul

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.