Compiler error with RadEditor

4 posts, 0 answers
  1. Dexter
    Dexter avatar
    4 posts
    Member since:
    Jan 2009

    Posted 08 Mar 2010 Link to this post

    I am getting the following compiler error on this page with the RadEditor: The type or namespace name 'EditorExportingArgs' does not exist in the namespace 'Telerik.Web.UI' (are you missing an assembly reference?)

    My aspx page looks like this:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaskExport.aspx.cs" Inherits="EncControl.TaskExport" %> 
     
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head id="Head1" runat="server">  
        <EncEventViewer:Title ID="ucTitle" runat="server" /> 
        <link href="Styles.css" rel="stylesheet" type="text/css" /> 
    </head> 
    <body> 
        <form id="frmMain" runat="server">  
        <telerik:RadScriptManager ID="radScriptMgr" runat="server">  
        </telerik:RadScriptManager> 
     
        <script type="text/javascript" src="focus.js"></script> 
     
        <telerik:RadFormDecorator ID="decoratorMain" runat="server" DecoratedControls="all" 
            Skin="WebBlue"></telerik:RadFormDecorator> 
        <table cellpadding="0" cellspacing="0" align="center" class="MainTable">  
            <EncEventViewer:Header ID="ucHeader" runat="server" /> 
            <tr> 
                <td class="MainMenu">  
                    <EncEventViewer:Menu ID="ucMenu" runat="server" /> 
                </td> 
                <td class="MainWorkArea">  
                    <!-- This is the main work area customized for each page --> 
                    <telerik:RadAjaxPanel ID="radAjaxPanel" runat="server">  
                        <table cellpadding="2px" cellspacing="0" align="center" class="PageText">  
                            <tr> 
                                <td> 
                                    <br /> 
                                    <asp:Label ID="lblPageHeader" runat="server" CssClass="ParagraphHeader" Text="Export Issue"></asp:Label><br /> 
                                    <asp:Label ID="lblPageText" runat="server" CssClass="ParagraphBody" Text="This export may take a few minutes and will include the following components.  You may remove any unwanted items from the Export."></asp:Label> 
                                </td> 
                            </tr> 
                        </table> 
                        <br /> 
                        <asp:Panel ID="pnlAddIssue" runat="server" Visible="true" DefaultButton="btnSave">  
                            <table cellpadding="2px" cellspacing="0" align="center" class="FormTable">  
                                <tr> 
                                    <td class="FormHeader" colspan="2">  
                                        <asp:Label ID="lblFormHeader" runat="server" CssClass="FormHeaderLabel" Text="Export Issue"></asp:Label> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormPrimary" width="200px">  
                                        <asp:Label ID="Label1" runat="server" CssClass="ControlLabel" Text="Default Data: "></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormPrimary" width="350px">  
                                        <asp:CheckBox ID="chkDefault" runat="server" Checked="true" Enabled="false" Text="Export Default Data" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormSecondary" width="200px">  
                                        <asp:Label ID="Label2" runat="server" CssClass="ControlLabel" Text="Next Steps:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormSecondary" width="350px">  
                                        <asp:CheckBox ID="chkNextSteps" runat="server" Checked="true" Text="Export Next Steps" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormPrimary" width="200px">  
                                        <asp:Label ID="Label3" runat="server" CssClass="ControlLabel" Text="Resolutions:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormPrimary" width="350px">  
                                        <asp:CheckBox ID="chkResolutions" runat="server" Checked="true" Text="Export Resolutions" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormSecondary" width="200px">  
                                        <asp:Label ID="Label4" runat="server" CssClass="ControlLabel" Text="Notes:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormSecondary" width="350px">  
                                        <asp:CheckBox ID="chkExportNotes" runat="server" Checked="true" Text="Export Notes" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormPrimary" width="200px">  
                                        <asp:Label ID="lblAttachmentsLabel" runat="server" CssClass="ControlLabel" Text="Attachments:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormPrimary" width="350px">  
                                        <asp:CheckBox ID="chkAttachments" runat="server" Checked="true" Text="Export Attachments" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormSecondary" width="200px">  
                                        <asp:Label ID="Label5" runat="server" CssClass="ControlLabel" Text="Notifications:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormSecondary" width="350px">  
                                        <asp:CheckBox ID="chkNotifications" runat="server" Checked="true" Text="Export Email Notifications" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormPrimary" width="200px">  
                                        <asp:Label ID="Label6" runat="server" CssClass="ControlLabel" Text="Business Units:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormPrimary" width="350px">  
                                        <asp:CheckBox ID="chkBusinessUnits" runat="server" Checked="true" Text="Export Associated Business Units" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormSecondary" width="200px">  
                                        <asp:Label ID="Label7" runat="server" CssClass="ControlLabel" Text="User Groups:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormSecondary" width="350px">  
                                        <asp:CheckBox ID="chkUserGroups" runat="server" Checked="true" Text="Export Associated User Groups" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormPrimary" width="200px">  
                                        <asp:Label ID="Label8" runat="server" CssClass="ControlLabel" Text="Associated Issues:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormPrimary" width="350px">  
                                        <asp:CheckBox ID="chkAssociatedIssues" runat="server" Checked="true" Text="Export Associated Issues" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormSecondary" width="200px">  
                                        <asp:Label ID="Label9" runat="server" CssClass="ControlLabel" Text="Events:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormSecondary" width="350px">  
                                        <asp:CheckBox ID="chkEvents" runat="server" Checked="true" Text="Export Associated Events" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormPrimary" width="200px">  
                                        <asp:Label ID="Label10" runat="server" CssClass="ControlLabel" Text="Associated Tasks:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormPrimary" width="350px">  
                                        <asp:CheckBox ID="chkRelatedTasks" runat="server" Checked="true" Text="Export Associated Tasks" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td align="right" class="FormSecondary" width="200px">  
                                        <asp:Label ID="Label11" runat="server" CssClass="ControlLabel" Text="Issue History:"></asp:Label> 
                                    </td> 
                                    <td align="left" class="FormSecondary" width="350px">  
                                        <asp:CheckBox ID="chkIssueHistory" runat="server" Checked="true" Text="Export Issue History" /> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td class="FormFooter" colspan="2" height="25px">  
                                        <asp:Button ID="btnExport" runat="server" Text="Export" CssClass="Control" OnClick="btnExport_Click" 
                                            Width="125px" /> 
                                        <asp:Button ID="btnCancel" runat="server" Text="&lt;Back" CssClass="Control" OnClick="btnCancel_Click" 
                                            CausesValidation="false" Width="125px" /> 
                                    </td> 
                                </tr> 
                            </table> 
                            <table> 
                                <tr> 
                                    <td> 
                                        <telerik:RadEditor ID="TaskExportEditor" runat="server" SkinID="DefaultSetOfTools" 
                                            OnExportContent="TaskExportEditor_ExportContent">  
                                            <ExportSettings OpenInNewWindow="true" /> 
                                        </telerik:RadEditor> 
                                    </td> 
                                </tr> 
                            </table> 
                        </asp:Panel> 
                    </telerik:RadAjaxPanel> 
                    <!-- This is the end of the main work area --> 
                    <br /> 
                </td> 
            </tr> 
            <EncEventViewer:Footer ID="ucFooter" runat="server" /> 
        </table> 
        </form> 
    </body> 
    </html> 
     

    and my .cs file:
    using System;  
    using System.Collections.Generic;  
    using System.Linq;  
    using System.Web;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using System.IO;  
    using Telerik.Web.UI;  
     
    namespace EncControl  
    {  
        public partial class TaskExport : System.Web.UI.Page  
        {  
            protected void Page_Load(object sender, EventArgs e)  
            {  
                TaskExportEditor.Content = "Some content to export to a PDF";  
            }  
     
    // the following line is generating a compile error
            protected void TaskExportEditor_ExportContent(object sender, Telerik.Web.UI.EditorExportingArgs e)  
            {  
                TaskExportEditor.ExportSettings.FileName = "TaskExport";  
                string url = String.Format("~/{0}.pdf", TaskExportEditor.ExportSettings.FileName);  
                string path = Server.MapPath(url);  
     
                if (File.Exists(path))  
                {  
                    File.Delete(path);  
                }  
     
                using (FileStream fs = File.Create(path))  
                {  
                    Byte[] info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);  
                    fs.Write(info, 0, info.Length);  
                }  
            }  
     
            protected void btnExport_Click(object sender, EventArgs e)  
            {  
                TaskExportEditor.ExportToPdf();  
            }  
        }  
    }  
     

    This page is in a project where other pages are using the Telerik.web.ui dl and they are working fine.  Can anyone tell me why the compiler can't find the Telerik.Web.UI.EditorExportingArgs?

    Thanks
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 11 Mar 2010 Link to this post

    Hello Dexter,

    Could you please upgrade to the latest Q1 2010 release of RadControls for ASP.NET AJAX and see whether the problem still persists? For your convenience I have attached a fully working project with the latest version of RadEditor.

    If you still experience the issue, modify the project and send it for examination by opening a support ticket.

    All the best,
    Rumen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. kia
    kia avatar
    17 posts
    Member since:
    Oct 2010

    Posted 08 Mar 2011 Link to this post

    Hi
    Your link does not exist.
    I have Dexter's  problem, please check your link
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 08 Mar 2011 Link to this post

    Hello Kia,

    The download link works fine on my end: http://screencast.com/t/enG6IaVUI.
    Can you please try to download the file again and if it does not work, to download it from another machine?

    Best regards,
    Rumen
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top