You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example a rdl viewer is created and then we assign a new sql string to the dataset for the reports DataSet "DataSetNameInYourReport". Column name and data types must match the report definition.
usingfyiReporting.RDL;usingfyiReporting.RdlViewer;usingfyiReporting.Data;fyiReporting.RdlViewer.RdlViewerrdlView=newfyiReporting.RdlViewer.RdlViewer();rdlView.SourceFile=newUri("\\path\to\your\report.rdl");// Column name and data types must match the report definition.rdlView.Report.DataSets["DataSetNameInYourReport"].SetSource("SELECT CategoryID, CategoryName, Description FROM Categories where CategoryName = 'SeaFood'");rdlView.Rebuild();