Normal Topic Wordmerge (Read 1313 times)
09510951
Member
*
Offline



Posts: 33
Location: Hulshorst, the Netherlands
Joined: Jul 21st, 2008
Wordmerge
Jan 4th, 2009 at 9:36am
Print Post Print Post  
When I try to print merge letter from the wordmerge_MKVII.db sample database I get the following error:

LE name '' not in current form.
(Ref. File: C:\Sesame2\Docs\CustomerLEs.txt)

In my own database it does the same thing.

What's wrong?

Thanks

Gerard
  
Back to top
 
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: Wordmerge
Reply #1 - Jan 4th, 2009 at 7:36pm
Print Post Print Post  
Take a look at the “CustomerLEs.txt” file located in the Docs folder using notepad.  Check for a space in-between the listed LEs. I actually had to remove “Title” from the list because it’s not on the form.  Or, you can add a “Title” LE to the form.

Mine looks like this:

KEY
First
Last
Company
Add1
Add2
City
State
ZIP
Position
Live_Prospect
Date_Entered
Currency
Checked

If any of the LEs listed have a space between them like:

KEY

First
Last
Etc.,

It will produce this error.

Let me know if this helps,

Brandon
  
Back to top
IP Logged
 
09510951
Member
*
Offline



Posts: 33
Location: Hulshorst, the Netherlands
Joined: Jul 21st, 2008
Re: Wordmerge
Reply #2 - Jan 5th, 2009 at 5:24am
Print Post Print Post  
Brandon,

It didn't help. There was no LE called Title nor any spaces.
If I test with only 1 LE name in my merge document it still gives this error.

Gerard
  
Back to top
 
IP Logged
 
09510951
Member
*
Offline



Posts: 33
Location: Hulshorst, the Netherlands
Joined: Jul 21st, 2008
Re: Wordmerge
Reply #3 - Jan 5th, 2009 at 5:30am
Print Post Print Post  
Found it. There is an (invisible) carriage return at the end of the document that you need to remove.
(That was my bright moment for 2009).

Gerard
  
Back to top
 
IP Logged
 
09510951
Member
*
Offline



Posts: 33
Location: Hulshorst, the Netherlands
Joined: Jul 21st, 2008
Re: Wordmerge
Reply #4 - Jan 5th, 2009 at 5:55am
Print Post Print Post  
In addition: I looked ad the provided programming. It sais:

// This next line gets rid of embedded carriage returns in the data fields. Replaces with two spaces.
//  This is necessary otherwise the merge will fail
     vData   = @Replace(vData, @Newline(), "  ")

Doesn't this replace a carriage return by a space, which also makes it fail?
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Wordmerge
Reply #5 - Jan 5th, 2009 at 12:51pm
Print Post Print Post  
09510951 wrote on Jan 5th, 2009 at 5:55am:
In addition: I looked ad the provided programming. It sais:

// This next line gets rid of embedded carriage returns in the data fields. Replaces with two spaces.
//  This is necessary otherwise the merge will fail
     vData   = @Replace(vData, @Newline(), "  ")

Doesn't this replace a carriage return by a space, which also makes it fail?


No. The replacement is being done on the data, not the list of LE names.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
09510951
Member
*
Offline



Posts: 33
Location: Hulshorst, the Netherlands
Joined: Jul 21st, 2008
Re: Wordmerge
Reply #6 - Jan 9th, 2009 at 11:15am
Print Post Print Post  
It starts to work. The problem I have now is that in the merged document the LE name (being "name") is also printed, like this:

name^
Gerard^
  
Back to top
 
IP Logged