Posts

Showing posts from January, 2011

Printing SSRS 2008 R2 Reports from C#.

While working on a code for sending a SSRS report straight to the printer, ran into a interesting issue where the Render method was not giving back the StreamId's for the reports which had more than one page. This is known bug in SSRS 2008 R3 MS Link . To  get around this issue, you have to modify the element value in the element and call the Render method multiple times  in a Do while loop to get all the pages for the report. The method RenderReport contains the code in which we iterate and call the Render method multiple times. Another bug, which i have not been able to resolve at the time of writing this post, is that the Fonts get somewhat strange when the report is published. Make sure that the you have the elements PrintDpiX and PrintDpiY present and thier values set to 96 in the element otherwise you might see the report printed out in oversize font. To call the class PrintSSSRSReport use the code below  PrintSSRSREport printReport = new PrintSSRSREport(); p...