I’ve been looking everywhere… I can only find how to print a LocalReport, not a ServerReport.
I do not want a print dialogue or anything, I just want it to print.
I have managed to get as far as printing the first page, but I cannot work out how to get the extra pages?
This VB.Net (2005) class will print a SSRS 2003 report. I suppose it MAY be able to handle any SSRS version as reports are passed as arrays of byte arrays, but unfortunately I cannot yet connect to (leave alone render!) SSRS 2005 or SSRS 2008 services to test it.
You should call the PrintReport function passing it the Report bytes (rendered as IMAGE), and the target printer name.
Ok, here’s the code (be warned, it’s one of my first attempts, and adapted from sample C code, don’t remember where in the ‘Net):