我有一个 .rdlc 文件。我需要选择并复制该rdlc文件中的文本。没有选项可以启用选择并复制文件中的文本。我使用下面的代码。有没有可能的方法来实现这种行为。请分享您的想法。
代码段 - Xaml(WPF)
<Grid Margin="50" HorizontalAlignment="Stretch" Grid.Row="1" VerticalAlignment="Stretch">
<WindowsFormsHost>
<rv:ReportViewer x:Name="reportViewer" />
</WindowsFormsHost>
</Grid>
代码段 - C#
DataTable objdtReport = new DataTable();
SQL.Load();
objdtReport = SQL.GetPatientDischargeDetails(txtBox.Text.Trim());
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.LocalReport.ReportEmbeddedResource = "WpfApplication7.Users.rdlc";
reportViewer.LocalReport.EnableExternalImages = true;
reportViewer.LocalReport.DataSources.Add(new ReportDataSource("UserConfiguration", objdtReport.DefaultView));
reportViewer.RefreshReport();