Print / print preview error message: Eval failed.

2 posts, 0 answers
  1. Edward
    Edward avatar
    83 posts
    Member since:
    Feb 2011

    Posted 28 May 2012 Link to this post

    At first it can print fine.  But after several attempts (didn't count but at least 10) it will begin to throw an error message "Eval failed" when calling the editor.Print line.  Once it starts to fail the app cannot print anymore and has to restart IE.

       at System.Windows.Browser.HtmlWindow.Eval(String code)
       at Telerik.Windows.Documents.UI.HtmlPrinter.Print(RadDocument document, PrintSettings settings, Boolean preview)
       at Telerik.Windows.Controls.RadRichTextBox.Print(PrintSettings printSettings)
       at Telerik.Windows.Controls.RadRichTextBox.Print(String documentName, PrintMode mode)
       at Kinark.KIDS4.SL.DocEditor.rtbEditor_CommandExecuting(Object sender, CommandExecutingEventArgs e)
       at Telerik.Windows.Controls.RadRichTextBox.OnCommandExecuting(CommandExecutingEventArgs e)
       at Telerik.Windows.Documents.RichTextBoxCommands.RichTextBoxCommandBase.Execute(Object parameter, Boolean focusCaret)

    private void rtbEditor_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
    {
        if (e.Command is PrintCommand)
        {
            if (e.CommandParameter != null && e.CommandParameter.ToString() == "Html")
            {
                rtbEditor.Print(Title, Telerik.Windows.Documents.UI.PrintMode.Html);
                e.Cancel = true;
            }
     
            if (e.CommandParameter != null && e.CommandParameter.ToString() == "HtmlPreview")
            {
                rtbEditor.Print(Title, Telerik.Windows.Documents.UI.PrintMode.HtmlPreview);
                e.Cancel = true;
            }
        }
    }
  2. Vasil
    Admin
    Vasil avatar
    124 posts

    Posted 31 May 2012 Link to this post

    Hi Edward,

    Unfortunately, we were not able to reproduce this failure. Could you elaborate more about which version of RadControls for Silverlight you are using in your project? In case the problem is browser or OS specific, please include the exact version of the browser and operation system.

    Looking forward to your reply.

    All the best,
    Vasil
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top