How to create a report that can deliver output in different formats