You need to do one of two things.
1. The template (the .dot with the column headings) needs to have two
lines. The second line is nothing more that the same number of commas
as the first line, with no data. This allows word to automatically
determine the delimiter to use.
2. Include the headers in with the CSV data file. If you do this,
again you need to make sure that there is at least two lines in the
file, else you'll run into the same problem.
I believe that will take care of your problem. If not, let me know. I
had to do the same thing awhile ago and could dig up the code if
necessary.
Bruce Johnson
TAG Consulting
http://www.tagconsulting.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!