2009年7月15日

[SSRS2008] Several Issues

  1. While creating scheduled task via SSRS web service, I got an [OperationalNotSupportedNativaModeException].
    1. When the Reporting Service is set to Native Mode, you should reference to ReportingService2005.asmx instead of ReportingServivce2006.asmx
  2. Programicaly create SSRS Snapshot report with parameters
    1. 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);


 

沒有留言:

Blog Archive

About Me