<%@ Page AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="ClientExportManager.ApplicationScenarios.Spreadsheet.DefaultVB"Language="vb" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<!-- Load Pako ZLIB library to enable PDF compression -->
<script src="../../../Common/Scripts/pako.min.js"></script>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<qsf:MessageBox ID="MessageBox" Type="Info" Icon="Info" runat="server" Visible="true">
<p>
<b>Note</b>: As of <b>R1 2020 SP1</b> the export functionality is built-in and supports an easy client-side export to PDF. You can check it in the <a href="https://demos.telerik.com/aspnet-ajax/spreadsheet/examples/overview/defaultcs.aspx">Spreadsheet - Export to PDF</a> online demo.
</p>
</qsf:MessageBox>
<div class="demo-container">
<telerik:RadButton ID="RadButton1" RenderMode="Lightweight" runat="server" OnClientClicked="exportRadSpreadsheet" Text="Export RadSpreadsheet to PDF" AutoPostBack="false" UseSubmitBehavior="false"></telerik:RadButton>
<telerik:RadClientExportManager runat="server" ID="RadClientExportManager1">
</telerik:RadClientExportManager>
<telerik:RadSpreadsheet runat="server" ID="RadSpreadsheet1" Height="700px">
</telerik:RadSpreadsheet>
</div>
<script>
var $ = $telerik.$;
function exportRadSpreadsheet() {
$find('<%=RadClientExportManager1.ClientID%>').exportPDF($(".rssView"));
}
</script>
</form>
</body>
</html>