This is a migrated thread and some comments may be shown as answers.

Exporting to .PDF

2 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dwayne Starkey
Top achievements
Rank 1
Dwayne Starkey asked on 22 Nov 2010, 05:01 PM
I am trying ot add a signature line to the end of the grid when the user exports. So far I am unsuccessful. After reading through the online help I still cannot seem to get it working. Has anyone added extras to the .pdf export? if so can someone point me in the right direction. The code I am using is below.

Thanks

Protected Sub RadGridSearchresults_PdfExporting(ByVal source As Object, ByVal e As Telerik.Web.UI.GridPdfExportingArgs) Handles RadGridSearchresults.PdfExporting
      Dim myHTMLCode As String = "Signature ___________________________________"
      source.ExportOutput = source.ExportOutput.Replace("</body>", myHTMLCode + "</body>")
  End Sub

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 22 Nov 2010, 10:23 PM
Hello Dwayne,

You should modify your code this way in order this approach to work:
Protected Sub RadGridSearchresults_PdfExporting(source As Object, e As Telerik.Web.UI.GridPdfExportingArgs) Handles RadGridSearchresults.PdfExporting
    Dim myHTMLCode As String = "Signature ___________________________________"
    e.RawHTML += myHTMLCode
End Sub

Let me know whether this helps.

Best regards,
Daniel
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Dwayne Starkey
Top achievements
Rank 1
answered on 23 Nov 2010, 01:36 PM
Thanks just what I needed.
Tags
Grid
Asked by
Dwayne Starkey
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Dwayne Starkey
Top achievements
Rank 1
Share this question
or