Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Retrieving SSRS Report Snapshot Programmatically and Display it in a Report Viewer.

$
0
0

    simply I want to retrieve a ssrs report snapshot and view it in a report viewer so I used this code

    string urlReportServer = "http://workstation/ReportServer_WORKSERVER";
    rptViewer.ProcessingMode = ProcessingMode.Remote;
    rptViewer.ServerReport.ReportServerUrl = new Uri(urlReportServer);
    rptViewer.ServerReport.ReportPath = "/main";
    rptViewer.ServerReport.HistoryId = "4F1F8306-7493-49EC-8EA1-72F217F8E568";// which I got from the ReporServer database.
    rptViewer.ServerReport.Refresh();


    then I got this error 

    The parameter value provided for 'snapshotID' does not match the parameter type. (rsParameterTypeMismatch)

      • String was not recognized as a valid DateTime.

      although I run the snapshot from the url normally and everything is working fine.


    Viewing all articles
    Browse latest Browse all 10045

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>