It would be useful to have an event that is passed the format that is to be generated and a flag to determine whether to generate headers or not.
This would save amending the generated code each time.
Taking it a step further, even more useful would be a per line format event that was called with the details that will be generqwted so we can alter them accordingly (would also need to be passed details as to export type, line number, page number etc)