473,382 Members | 1,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

RTF problem after setting rtf value

In an application I'm loading a RTF value from a database into a richtextbox.
After setting the RTF property of the richtextbox control I notice that this value is different than the database value

Well it is something like this

richtextbox.rtf = 'databasevalue'

but after this statement I notice that the richtextbox.rtf value is not equal to 'databasevalue'

Here is my rtf value (from the database)

"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttb l{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fnil\fcharset0 Arial;}}
\viewkind4\uc1\pard\lang1043\f0\fs20 KLINISCHE INLICHTINGEN:\par
\par
\par
MACROSCOPISCH ONDERZOEK: \par
Placenta: *** gram. \par
- Navelstreng: 3 bloedvaten, normale coiling, *** ingeplant.\par
- Vliezen: volledig en normaal voorkomend.\par
- Placentakoek: ** x ** x ** cm. Geen gelokaliseerde letsels. \par
Macroscopisch normaal voorkomende placenta. \par
\par
MICROSCOPISCH ONDERZOEK: \par
Navelstreng en vliezen zijn normaal voorkomend. Geen argumenten voor chorioamnionitis, funisitis of meconiumbelading. \par
Het placentaparenchym is matuur voorkomend met voldoende syncytiotrofoblastische kernophopingen en syncytiovasculaire \par
membranen. Geen ontsteking, geen infarcten. Geen histopathologische bijzonderheden.\par
\par
\b\f1 BESLUIT: \par
\b0\f0 Mature placenta zonder afwijkingen. \par
\pard\lang1033\f1\fs20\par
}
"


And this is the value of rtf propery after setting the richtextbox.rtf with the database value:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\fnil\fcharset0 Arial;}}
\viewkind4\uc1\pard\lang1043\f0\fs20 KLINISCHE INLICHTINGEN:\par
\par
\par
MACROSCOPISCH ONDERZOEK: \par
Placenta: *** gram. \par
- Navelstreng: 3 bloedvaten, normale coiling, *** ingeplant.\par
- Vliezen: volledig en normaal voorkomend.\par
- Placentakoek: ** x ** x ** cm. Geen gelokaliseerde letsels. \par
Macroscopisch normaal voorkomende placenta. \par
\par
MICROSCOPISCH ONDERZOEK: \par
Navelstreng en vliezen zijn normaal voorkomend. Geen argumenten voor chorioamnionitis, funisitis of meconiumbelading. \par
Het placentaparenchym is matuur voorkomend met voldoende syncytiotrofoblastische kernophopingen en syncytiovasculaire \par
membranen. Geen ontsteking, geen infarcten. Geen histopathologische bijzonderheden.\par
\par
\b\f1 BESLUIT: \par
\b0\f0 Mature placenta zonder afwijkingen. \par
\lang1033\f1\par
}



At the end of the 'new' rtf value you can see the difference

\pard\lang1033\f1\fs20\par became \lang1033\f1\par

Any idea? It's annoying because I track every change, so after the initial load it seems after I load the RTF value, it seems to have changed although it's not the case.

Thanks in advance
Aug 3 '07 #1
1 1939
Plater
7,872 Expert 4TB
All it did was take out that "font size 20" command. Which is probably just it's way of "zeroing" the RTF back to whatever it decided the default was.
Not sure what you can do about it, except maybe seeing what happens if it's not in the database version to begin with
Aug 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Antoun | last post by:
Hello, Is there a means, with CSS or else, to remove or resize the blank line after a P ? I've tried margin-bottom, padding-bottom, cell-spacing, and found nothing ! Thanks for your answers !...
4
by: Janick Bernet | last post by:
After updating to FP10, everytime i want to execute a stored procedure it gives me an error "Java or .NET interpreter startup or communication failed". In the db2diag.log there is an info just...
2
by: MisConFit8 | last post by:
My question is this - is it possible to set a standard value in the web.config file and change it later based on conditions? Why, you might ask? I am building a web based application for...
2
by: darrel | last post by:
The scenario: I have a button that when clicked sets a cookie value. On page load, I read this cookie value and write out some specific HTML. The catch: It appears that the buttonHandler...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
6
by: Dugo | last post by:
I'm trying to use a "keypad" form (with command buttons for numbers 0 thru 9) I developed to allow users to first click a textbox on one form, then click a number on the keypad and have the value...
5
by: Amogh | last post by:
Hi, My question is related to setting freed pointers to NULL. After freeing a pointer: 1) Should the freeing routine also be responsible for setting the pointer to null? 2) Or, should the...
1
by: Spam Catcher | last post by:
Hi all, I'm moving a ClickOnce install to a development server, and I've updated my .application file with the new paths using mageui.exe. ..NET 2.0 installs OK, but right after it installs I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.