473,779 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RTF problem after setting rtf value

3 New Member
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\an sicpg1252\deff0 \deflang1033{\f onttbl{\f0\fswi ss\fprq2\fchars et0 Arial;}{\f1\fni l\fcharset0 Arial;}}
\viewkind4\uc1\ pard\lang1043\f 0\fs20 KLINISCHE INLICHTINGEN:\p ar
\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 chorioamnioniti s, funisitis of meconiumbeladin g. \par
Het placentaparench ym is matuur voorkomend met voldoende syncytiotrofobl astische kernophopingen en syncytiovascula ire \par
membranen. Geen ontsteking, geen infarcten. Geen histopathologis che 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\ans icpg1252\deff0\ deflang1033{\fo nttbl{\f0\fswis s\fprq2\fcharse t0 Arial;}{\f1\fni l\fcharset0 Arial;}}
\viewkind4\uc1\ pard\lang1043\f 0\fs20 KLINISCHE INLICHTINGEN:\p ar
\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 chorioamnioniti s, funisitis of meconiumbeladin g. \par
Het placentaparench ym is matuur voorkomend met voldoende syncytiotrofobl astische kernophopingen en syncytiovascula ire \par
membranen. Geen ontsteking, geen infarcten. Geen histopathologis che bijzonderheden. \par
\par
\b\f1 BESLUIT: \par
\b0\f0 Mature placenta zonder afwijkingen. \par
\lang1033\f1\pa r
}



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

\pard\lang1033\ f1\fs20\par became \lang1033\f1\pa r

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 1963
Plater
7,872 Recognized Expert Expert
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
17149
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 ! Antoun
4
2239
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 bevore the error saing that it attempts loading "libjvm.so" and also there is something about an SQL08023 which I could not find any information about. Anyone had similar problems? Would appreciate any help/tips which could lead to a solution.
2
1652
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 inter-office usage. It is an application where software product keys and license keys are stored and created. We have 1/2 of the office personnel working from within the domain, and 1/2 that disconnect and work in the field. I am setting up replication for...
2
1305
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 executes AFTER the page load on the postback.
10
3092
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 config does specify a machinekey setting: <machineKey validationKey="447C05E8B3A71401CC4CAE5513A7F1A3494A3618EE819316AAD1D58433F236A759D66FB4154500E01EB4E1BC1DE42046E2D652D391CB8367A1649438867A02EB"...
6
3074
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 entered in the textbox. It's all seemingly working except that I have an AfterUpdate event set for the textboxes and that event is NOT triggered when I use the keypad to enter data. If I enter numbers with the regular keyboard, the even is...
5
3172
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 client/user code be responsible for doing it? On what basis should a decision be made favouring either case ?
1
9015
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 get the following error: An error occurred trying to download 'http://inpsiron6000/ClickOnceDeploymentTest/ClickOnceDeploymentTest.appl
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.