Mathan,
You use a queryTask to query the map service to get the records you want and then use domContruct to create your report using standard html elements (like hr, Span, img, div, table). It can be done but there is no simple shortcuts, you have a lot of work ahead of you creating and fomatting and laying out the dom elements to make your report.