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

Text at the end of pdf file

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dawson
Top achievements
Rank 1
Dawson asked on 09 Dec 2013, 01:32 PM
Hi.
im exporting my grid to pdf. At the end i want to add some text. How to add the text at the end of pdf file?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Dec 2013, 01:37 PM
Hi Dawson,

You can achieve your required scenario using the OnPdfExporting event of the RadGrid as follows:

C#:
protected void RadGrid1_PdfExporting(object sender, Telerik.Web.UI.GridPdfExportingArgs e)
{
 string str = "<div>your text here</div>";
 e.RawHTML = e.RawHTML + str;
}

Thanks,
Shinu
Tags
Grid
Asked by
Dawson
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or