MySQL Forums
Forum List  »  Newbie

Re: Cannot load RTF stored in database to richtextbox properly
Posted by: Phillip Ward
Date: May 27, 2014 05:23AM

Quote

Created my first database with only 3 fields ...
Can I start with some words of advice? Programming can be a very technical discipline - it matters what things are called.

Databases contain Tables.
Tables contain Fields.
Each Field contains a [single] Value that is of a specified Data Type.

Quote

To populate the database I created only 3 registers ...
Again; Names.
To me, a "Register" is a very high speed, numeric data storage area that's buried deep inside the computer's CPU.

Quote

... I right-clicked the register and selected the option "Load Value from Files". Got something like that:

{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff0\deff0\stshfdbch0\stshfloch31506\stshfhich31506\stshfbi31506\deflang1046\deflangfe1046\themelang1046\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f0\fbidi ......
Which, at first glance, looks like perfectly valid RichText to me.

Quote

The problem is that the richtextbox shows me the unformatted text ...
To which RichTextBox property are you binding the data? .Text won't do the job (but will do what you're describing) - you have to use .RTF.

Quote

LONG TEXT is correct?
I'd say so, yes.

Regards, Phill W.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.