private void BtnView_Click(object sender, RoutedEventArgs e) { var vwr = new ReportViewer(TheReport.Report.File_Name.Replace(".rdl", "")); vwr.Show(); }