Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
IGR files
posted

Hi,

Is it possible now to save and load IGR reports into/from database reports in v12.1 ?

 

regards

Parents
  • 740
    posted

    Hi,

    You can load a report from a database or any other source by loading it as a stream and providing it to the viewer.

    Considering your request, you can use a Report Uri Resolver to map URI to reports and define how they are loaded (e.g. retrieve them from a DB). Here is a guide and sample to learn how to use it.

    Also, if you are using client-side rendering you can do something like this to set the viewer once you have loaded the stream (e.g. retrieved from the DB).:

     //Load a local report

     

    Stream myReportStream = Application.GetResourceStream(new Uri("SilverlightApplication1;component/Report1.igr", UriKind.Relative)).Stream;

    xamReportViewer1.RenderSettings = new ClientRenderSettings { DefinitionStream = myReportStream };

     

     

    Hope it helps.

    Regards,

    Miguel

     

     

     

Reply Children