I run the report in jasper server. There it provided the required output.
That's what is of interest here. How,
exactly, are you doing that? Tell us lots of details. Is this a web app? If so, the report should have a URL, yes? If so, why can't you link to that in your web app? etc. etc.