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

Mail Merge

Mail template


Select file format

This example illustrates Mail Merge functionality for RadWordsProcessing. You can export the document to any of the formats listed in the dropdown menu.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Title="" Language="VB"  AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="WordsProcessing_MailMerge_DefaultVB" %>

<!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 id="mailMergeContainer" class="demo-container size-wide">

        <asp:Image ImageUrl="images/mail_template.jpg" ID="MailTemplateImage" AlternateText="Mail template" runat="server" />

        <br />
        <br />
        <br />
        <asp:Label ID="Label1" Text="Select file format" runat="server" />
        <br />
        <telerik:RadComboBox RenderMode="Lightweight" id="ExtensionsRadComboBox" runat="server" cssclass="extentionSelector">
            <Items>
                <telerik:RadComboBoxItem Value=".docx" Text="DOCX" />
                <telerik:RadComboBoxItem Value=".rtf" Text="RTF" />
                <telerik:RadComboBoxItem Value=".html" Text="HTML" />
            </Items>
        </telerik:radcombobox>

        <br />

        <telerik:RadButton RenderMode="Lightweight" text="Mail merge" runat="server" id="Button1" onclick="Button1_Click" cssclass="mailMergeButton"></telerik:radbutton>

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

Support & Learning Resources

Find Assistance