New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

WebForms SpreadStreamProcessing Large Document Export

  • Demo Configurator
Exported file settings
Xlsx

With RadSpreadStreamProcessing you can generate XLSX and CSV files with minimal memory consumption and excellent performance.

Note that the time for generating a large number of records will depend on the specific server load and capabilities.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
    • DefaultCS.aspx.cs
    • Client.cs
    • DocumentHelper.cs
    • DocumentRow.cs
    • Shipping.cs
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="Telerik.SpreadStreamProcessing.LargeDocumentExport.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <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" />
    <div class="demo-containers">
        <div class="demo-container">
            <asp:Image ImageUrl="~/SpreadStreamProcessing/SampleData/large-document-export.png" ID="SampleDataImage" runat="server" />
        </div>
    </div>
    <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Title="Demo Configurator">
        <Views>
            <qsf:View>
                <fieldset>
                    <legend>Exported file settings</legend>

                    <asp:Label Text="Rows count:" AssociatedControlID="TextBox1" runat="server" />
                    <qsf:TextBox ID="TextBox1" runat="server" Text="5000"></qsf:TextBox>
                    <asp:Label Text="File extension:" AssociatedControlID="ExtensionsDropDownList" runat="server" />
                    <qsf:DropDownList Size="Medium" runat="server" ID="ExtensionsDropDownList">
                        <Items>
                            <telerik:DropDownListItem Value="xlsx" Text="Xlsx" />
                            <telerik:DropDownListItem Value="csv" Text="Csv" />
                        </Items>
                    </qsf:DropDownList>
                    <qsf:Button Text="Export" ID="Button1" OnClick="Button1_Click" runat="server" />
                </fieldset>
            </qsf:View>
        </Views>
    </qsf:ConfiguratorPanel>

    </form>
</body>
</html>

Support & Learning Resources

Find Assistance