Copy the text of the RDLC report and paste into notepad

I have a reportviewer application in a windows form application that displays an RDLC report. I need to copy the text of this report and save it in a notebook. Can anyone help? enter image description here

For example, I only need to copy the text "LiFTER ASSY", but without exporting directly from Reportviewer itself.

+7
c # winforms reportviewer rdlc
source share
3 answers

You either export or copy it yourself by typing. This is a read-only generated report.

+2
source share

You can export the report in pdf, excel or word. From there you can try to copy the text.

+1
source share

Since 2005, I have been waiting for this feature!

The only desktop I have ever found is to use the Hyperlink event from ReporViewer to emulate a copy action (based on http://www.devx.com/dotnet/Article/30424/0/page/6 ).

In the report, set hiperlink as:

="copy:" & Fields!SomeField.Value 

And then in the code:

 private void reportViewer_Hyperlink(object sender, HyperlinkEventArgs e) { Uri uri = new Uri(e.Hyperlink); if (uri.Scheme.ToLower() == "copy") { System.Windows.Forms.Clipboard.SetText(uri.Authority); e.Cancel = true; // Load the customer details in another form ((ReportViewer)sender).RefreshReport(); } } 
0
source share

All Articles