- While creating scheduled task via SSRS web service, I got an [OperationalNotSupportedNativaModeException].
- When the Reporting Service is set to Native Mode, you should reference to ReportingService2005.asmx instead of ReportingServivce2006.asmx
- Programicaly create SSRS Snapshot report with parameters
- SSRS does not support parameterized snapshot (unless you set default parameters), to programicaly create parameterized snatshop.
ReportingService2005 svc = new ReportingService2005();
svc.Credentials = System.Net.CredentialCache.DefaultCredentials;
svc.SetReportParameters("/ReportsTest/UsersReport", new ReportParameter[]{
new ReportParameter{
Name="userID",
DefaultValues = new string[]{"John Don"}
}
}
);
ReportingService2005.Warning[] warnings = null;
string id = svc.CreateReportHistorySnapshot("/ReportsTest/UsersReport", out warnings);
沒有留言:
張貼留言