trichview.com

trichview.support




Re: Possible Bug (Paste and Unicode)


Return to index


Author

Message

Sergey Tkachenko

Posted: 06/22/2004 17:45:17


(I deleted the original posting because of its size; please send large

attachments to me by e-mail).


All that I can say - something went completely wrong.

The most possible reason - the document content and styles were completely

desyncronized.

White-on-red is used to display text styles with invalid indices (>=

RVStyle.TextStyles.Count).

Red border is used for paragraphs in the same way.

And it looks like TRichView does not understand that it's a Unicode text

data, and tries to display it as ANSI text (or vice versa)


Things to check:

- make sure that you use field type allowing to store arbitrary binary data

(and does not do any character filtering/conversion)

- make sure that "Allow adding styles dynamically" option is set ("Settings"

in the designtime component context menu); consequences of not including

this options do not look so impressive, though;

- make sure that you do not have any code (called after document is loaded)

that produces this result :)




> Dear All,

>

> When I try to copy the content from a Word document and paste it into a

> TDBRichViewEdit, the information appears correctly before saving it.

> However, after saving the data into a database, TDBRichViewEdit displays a

> completely corrupted message.

>

> I am sending you two screenshots of my application. The first (before.jpg)

> will show you how the document is presented after a successful Paste BUT

> before saving it into the database. The second (after.jpg) will show you

how

> the document is presented after saving it into the database. The database

in

> use is the latest version of DBISAM.

>

> Please, let me know if I am missing something.

>

> Kind regards,

>

> Sergio Lobo

>

>

>





Powered by ABC Amber Outlook Express Converter