I think you need to:

- tell us what programming environment you're using
- what type of report writer you're using
- post this question in the Reporting section instead...

Regards.