Talking to Jooel he suggeted to use the old friend writeline() to write the header.
I am more the opinion of using the same object developed for that purpose but this particular code seems to be stucked using kix.

Thoughts?
_________________________
Life is fine.