New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Export Whole Pages

RadClientExportManager can export the whole page or a specific DOM element.

To export the whole page to a PDF document, you should pass the jQuery object wrapping the "" DOM element, or the DOM element itself, to the exportPDF client-side method of the RadClientExportManager object. To export to an image or SVG, you should use the exportImage and exportSvg client-side methods.

Example 1: Export the whole page to a PDF document

ASPNET
<div id="foo">Lorem ipsum dolor sit amet</div>

<telerik:RadClientExportManager runat="server" ID="RadClientExportManager1">
	<PdfSettings FileName="MyFile.pdf" />
</telerik:RadClientExportManager>

<input type="button" onclick="exportElement()" value="export" />
JavaScript
<script type="text/javascript">
	function exportElement() {
		var exp = $find("<%= RadClientExportManager1.ClientID %>");
		exp.exportPDF($telerik.$("html"));
	}
</script>
Not finding the help you need?
Contact Support