This is a migrated thread and some comments may be shown as answers.

SpellCheckProvider="MicrosoftWordProvider

5 Answers 144 Views
Editor
This is a migrated thread and some comments may be shown as answers.
v
Top achievements
Rank 1
v asked on 24 Mar 2009, 04:59 AM

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>

 

 

 

 

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Mar 2009, 03:58 PM
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.
0
Jim Sparks
Top achievements
Rank 1
answered on 26 Jul 2009, 10:52 PM
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
0
Lini
Telerik team
answered on 27 Jul 2009, 07:58 AM
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.
0
Jim Sparks
Top achievements
Rank 1
answered on 28 Jul 2009, 05:25 PM
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.
0
Lini
Telerik team
answered on 29 Jul 2009, 10:17 AM
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.
Tags
Editor
Asked by
v
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Jim Sparks
Top achievements
Rank 1
Lini
Telerik team
Share this question
or