Normal Topic Merge Print won't work right (Read 1791 times)
javir73
Member
*
Offline


No personal text

Posts: 20
Joined: Jun 30th, 2004
Merge Print won't work right
Sep 2nd, 2004 at 5:57pm
Print Post Print Post  
Hi,

I used the programming in Appendix 2 to create a Merge Print.  I had a document that I had converted from Q&A to Word and replaced the Merge fields with Sesame's.  But whenI go to print it throws in a couple of the fields and leaves the rest blank.  This is my error log:

Record 1 contained too few data fields.
Record 2 contained too few data fields.
Record 3 contained too few data fields.
Record 4 contained too few data fields.
Record 5 was an empty record.
Record 6 contained too few data fields.
Record 7 contained too few data fields.
Record 8 contained too few data fields.
Record 9 was an empty record.
Record 10 contained too few data fields.
Record 11 contained too few data fields.
Record 12 contained too few data fields.
Record 13 contained too few data fields.
Record 14 contained too few data fields.
Record 15 contained too few data fields.
Record 16 contained too few data fields.
Record 17 contained too few data fields.
Record 18 contained too few data fields.
Record 19 contained too few data fields.
Record 20 contained too few data fields.
Record 21 contained too few data fields.
Record 22 contained too few data fields.
Record 23 contained too few data fields.
Record 24 contained too few data fields.

I have no idea what this means, I went through the programming 18 ways from Sunday and it looks good to me.  Any ideas?

Thanks.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Merge Print won't work right
Reply #1 - Sep 2nd, 2004 at 5:59pm
Print Post Print Post  
  

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


No personal text

Posts: 20
Joined: Jun 30th, 2004
Re: Merge Print won't work right
Reply #2 - Sep 3rd, 2004 at 11:18am
Print Post Print Post  
Ok, so the line:

var b as array[xx] of String

[xx] needs to be the exact amount of data fields?

Do I need to care about the ones that read that the field is empty?  Because in my database, we have fields that will be empty at times and filled at others.

Thanks
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Merge Print won't work right
Reply #3 - Sep 3rd, 2004 at 1:49pm
Print Post Print Post  
Your merge document is expecting to receive a certain number of values per row. You must provide that number of values, even if the value is blank ("").

If the merge document is expecting 10 values per row, and you send it a file where some rows have 10 values, some have 9 and some have 11, the merge document will throw up its proverbial hands and go sit in a corner mumbling to itself.  Wink
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged