Skip to content

Replies

0
Miguel Machado
Miguel Machado answered on Feb 8, 2012 1:06 PM

Hello,

I see you already found a way of doing this, for future reference here is a snippet on how to instantiate Client & Server rendering settings, when setting this property the viewer.will  automatically try to render and refresh its view.

…

// Server RenderSettings

xamReportViewer1.RenderSettings = new ServerRenderSettings{

DefinitionUri = new Uri("MyAssembly;component/MyReport.igr", UriKind.RelativeOrAbsolute),

ServiceEndpointUri =  new Uri ("/ReportService.svc", UriKind.RelativeOrAbsolute));

…

 

// Client RenderSettings

xamReportViewer1.RenderSettings = new ClientRenderSettings{ 

DefinitionUri = new Uri("MyAssembly;component/MyReport.igr", UriKind.Relative)


};

…

 

Regards,

 

Miguel