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

Why TxtFormatProvider is not recognized

4 Answers 94 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
york
Top achievements
Rank 1
york asked on 24 Jan 2012, 09:04 AM
Hi,
I have VB code that try to set content of radRichTextBox as follow, (Telerik.Windows.Documents.dll (2011.3.1116.1040) are added to the project)
Imports Telerik.Windows.Documents
Imports Telerik.Windows.Documents.FormatProviders
 
...
 
        Dim provider As TxtFormatProvider = New TxtFormatProvider()
        radRichTextBox1.Document = provider.Import(e.Result)
Strangely enough, compiler gives error "Type 'TxtFormatProvider' is not defined.". What the hell is going on?

Thanks,
York


4 Answers, 1 is accepted

Sort by
0
york
Top achievements
Rank 1
answered on 24 Jan 2012, 09:03 PM
This is solved for TxtFormatProvider is in Telerik.Windows.Documents.FormatProviders.txt.
0
Accepted
Boby
Telerik team
answered on 25 Jan 2012, 08:17 AM
Hello York,
Actually TxtFormatProvider is in Telerik.Windows.Documents assembly. You can read more about available format providers in this help article.

Kind regards, Boby
the Telerik team

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

0
york
Top achievements
Rank 1
answered on 25 Jan 2012, 10:29 PM
I think for newer version, it changes to Telerik.Windows.Documents.FormatProviders.txt. The doc has yet to be updated.
0
Iva Toteva
Telerik team
answered on 26 Jan 2012, 05:04 PM
Hello York,

You are partially right.
TxtFormatProvider is included in the Telerik.Windows.Documents assembly, but it is under the namespace Telerik.Windows.Documents.FormatProviders.Txt. Therefore, you don't need any additional assembly references, but the imports/using clause which has to be declared is:
Imports Telerik.Windows.Documents.FormatProviders.Txt


Greetings,
Iva Toteva
the Telerik team

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

Tags
RichTextBox
Asked by
york
Top achievements
Rank 1
Answers by
york
Top achievements
Rank 1
Boby
Telerik team
Iva Toteva
Telerik team
Share this question
or