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

Which export/Import to use?

4 Answers 74 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Joël
Top achievements
Rank 2
Joël asked on 19 Oct 2011, 02:05 PM

Here, I store the contents of my RadRichTextBox in my database.

For storage I must thus use an export. And, for displaying an importation.

I use all the functions suggested by your RadRichTextBox, primarily:
- MergeField
- Tables
- Image

The concern, it is that according to the provider used, I lose one or more information, has to know:
- DocxProvider, I loses the size of the tables and I lose the style of MergeField
- RtfProvider, I loses MergeField
- XamlProvider, if I use MergeField I have an error message at the time of the importation Boat create Telerik.Windows.Documents.Modele

I
would prefer not to use RtfProvider, indeed, it stock the images with format BMP and that takes too much place.


Could
you indicate good walk to me to be followed?

4 Answers, 1 is accepted

Sort by
0
Joël
Top achievements
Rank 2
answered on 19 Oct 2011, 02:36 PM
In fact, my error message at the time of the Xaml importation, is due to my custom MergeField, apparently, the importation does not manage to find the type.
0
Joël
Top achievements
Rank 2
answered on 20 Oct 2011, 07:35 AM

Apparently, Xaml import/export is best succeeded. I checked in the file Xaml, the bug comes owing to the fact that export regards my CustomDataField as being part of the assembly "xmlns: T =Telerik.Windows.Controls" but it is not the case.

I created a function which corrects, by adding my assembly and by prefixing my CustomDataField correctly, and I do not have any more a bug.
0
Boby
Telerik team
answered on 24 Oct 2011, 01:04 PM
Hi Laurent,
This is known issue with custom CodeBasedFields, which are not correctly exported to XAML. It is already added in our to-do list and we will try to fix it for some of the next releases.
We are sorry for the inconvenience caused.

Kind regards,
Boby
the Telerik team

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

0
Joël
Top achievements
Rank 2
answered on 24 Oct 2011, 01:07 PM
No worries, in the meantime I'm pass the string Xaml in a tool that corrects the xmlns & my CustomDataField's tags.
Tags
RichTextBox
Asked by
Joël
Top achievements
Rank 2
Answers by
Joël
Top achievements
Rank 2
Boby
Telerik team
Share this question
or