is this not available in the SRS 2005? is there no way to set the report format using code behind?
thanks.
is this a local or remote report?|||remote report.
in the 2000 version, it was simply ReportViewer.Format. Now, unless i'm missing something obvious, I cannot find this property.
thanks for any help.
|||If you are using the reportviewer control in 2005 and you wish to control the output in code behind, your syntax would be something like...
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri([url of report server]); //if you want to override the control properties
ReportViewer1.ServerReport.ReportPath = "report path and report name"; //if you want to override the control properties
ReportViewer1.ServerReport.SetParameters(paramList); // if you have parameters...
byte[] result = ReportViewer1.ServerReport.Render("EXCEL", null, out mimeType, out encoding, out extension, out streamids, out warnings);
Good Luck!
|||excellent! that worked great. thanks so much.
No comments:
Post a Comment