SpellCheckProvider="MicrosoftWordProvider

6 posts, 0 answers
  1. v
    v avatar
    4 posts
    Member since:
    Nov 2008

    Posted 23 Mar 2009 Link to this post

    How to make SpellCheckProvider="MicrosoftWordProvider" work......
    it throws an assembly error at run time

    below is my code

    <

    telerik:RadEditor ID="RadEditor1" runat="server" Skin="Outlook" StripFormattingOptions="MSWordRemoveAll" SpellCheckSettings-
    SpellCheckProvider
    ="MicrosoftWordProvider"> 

     

     

    <Tools>

     

     

     

    <telerik:EditorToolGroup>

     

     

     

    <telerik:EditorTool Name="AjaxSpellCheck" ShowIcon="true" />

     

     

     

    </telerik:EditorToolGroup>

     

     

     

    </Tools>

     

    </

     

    telerik:RadEditor>

     

     

     

     

  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 26 Mar 2009 Link to this post

    Hi,

    We have not yet updated the MsWordAdapter assembly to support the RadSpell for ASP.NET AJAX.

    You will need the two MS Office interop dlls (Microsoft.Vbe.Interop.dll and Microsoft.Office.Interop.Word.dll) in the bin folder of your application. Next you will need to put the attached MSWordAdapter.cs file in your application's App_Code folder. Finally, you need to set the SpellCheckProviderTypeName property of the RadSpell control to point to the WordSpellCheckProvider class in the MSWordAdapter.cs file. For example:

    RadSpell1.SpellCheckProviderTypeName = typeof(Telerik.Web.UI.WordSpellCheckProvider).AssemblyQualifiedName;

    Best regards,
    Rumen
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jim Sparks
    Jim  Sparks avatar
    2 posts
    Member since:
    Jul 2009

    Posted 26 Jul 2009 Link to this post

    Hello,

    How do I follow these instructions with RadEdit control?

    I would like RadEdit control to use the Word spellchecker.  I have already followed the DCOM instructions.  Now I would like to point the SpellCheckProviderTypeName property to point to that file in the App_Code folder.  But there is no such property on RadEdit.

    How do I set this property on a RadEdit?  ( Specifically I am using RadEdit in the DNN provider ).

    More precisely, how do I set this property since there is no SpellCheckProviderTypeName member in SpellCheckSettings ( http://www.sitefinity.com/help/developer-manual/telerik.web.ui-telerik.web.ui.editor.spellchecksettings_members.html )
    Best regards
  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 27 Jul 2009 Link to this post

    Hello,

    If you are using the RadEditor in DNN, then you can change the editor provider code directly and add the SpellCheckProviderTypeName property there. Open the RadEditorProvider.vb file from the ~/App_Code/TelerikWebUI/ folder in your DNN web site. Find the RadEditor_Load sub and add the property there:

    Protected Sub RadEditor_Load(ByVal sender As ObjectByVal e As EventArgs) Handles _editor.Load 
        _editor.SpellCheckSettings.SpellCheckProviderTypeName = GetType(Telerik.Web.UI.WordSpellCheckProvider).AssemblyQualifiedName 
     
        Dim editorPage As Page = _panel.Page 
     



    Sincerely yours,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Jim Sparks
    Jim  Sparks avatar
    2 posts
    Member since:
    Jul 2009

    Posted 28 Jul 2009 Link to this post

    Hello,

    Thanks.

    I now get an error stating that 'Telerik.Web.UI.WordSpellCheckProvider' type cannot be found.  The source is in App_Code.

    When I copy the source file into the App_Code/TelerikWebUI folder I get a different error.  That the code is CS and needs to be VB since it has to be compiled with the other VB source files.

    Is there a library version of that class?  Or is there a VB version of the source I can include with the DNN provider?  Since DNN is written in VB.
  7. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 29 Jul 2009 Link to this post

    Hi,

    You can have both C# and VB code in the App_Code folder of a web application, but you need to separate them and add a line in the web.config to specify that the folder needs to be compiled separately. For example, copy the MSWordAdapter.cs file in a folder called MSWordAdapter in App_Code (see attached screenshot). Then open the Web.config in the root folder and add the folder under codeSubDirectories element in compilation:

          <!-- register your app_code subfolders to generate granular assemblies during compilation 
          <codeSubDirectories>  
            <add directoryName="sub-directory name"/>  
          </codeSubDirectories> 
          --> 
          <codeSubDirectories> 
            <add directoryName="HTML" /> 
            <add directoryName="MSWordAdapter" /> 
            <add directoryName="TelerikWebUI" /> 
          </codeSubDirectories> 
        </compilation> 

    Make sure that it is before the TelerikWebUI folder so the editor provider will be able to resolve the reference correctly.


    Best wishes,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017