A1VBCode Forums

HOW to Add Copy Paste Button onto a crystal report viewer


http://www.a1vbcode.com/vbforums/Topic32115.aspx

By ktgforever - 1/23/2014

We have an invoicing Software , which generates invoices using Crystal Reports. What the report viewer has 2 buttons just print and close. There is no option or the report viewer does not allow the user to copy and paste text fields to word or excel.



So i added a copy command onto the frmreportshow form and used the following i got from "http://www.a1vbcode.com/vbforums/FindPost25097.aspx" . it doesnt work. Is there an command which would help use to copy the contents of the crystal report to clipboard.





command used :



Private Sub btnCopy_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnCopy.Click



Dim emp As String = ReportFieldText



Clipboard.SetDataObject(emp)



End Sub