| You are here: DEVPPL ‹ Forum ‹ Programming ‹ Visual Basic Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
Extracting RTF data in RecordSet
2 posts
• Page 1 of 1
0
Extracting RTF data in RecordSet
Hi,
I'm trying to pull RTF data stored in an MSDE database in an ntext field using sql and I keep getting truncated results. As far as I can tell, I'm only getting the last approx. 80 characters from the db, which includes some RTF code.
I'm pulling other fields (some are ntext) and am having to problems with those, it's just the one stored as RTF.
I didn't design the database schema, I'm just trying to pull data already entered to keep from replicating steps.
Any help would be greatly appreciated.
BN
I'm trying to pull RTF data stored in an MSDE database in an ntext field using sql and I keep getting truncated results. As far as I can tell, I'm only getting the last approx. 80 characters from the db, which includes some RTF code.
I'm pulling other fields (some are ntext) and am having to problems with those, it's just the one stored as RTF.
I didn't design the database schema, I'm just trying to pull data already entered to keep from replicating steps.
Any help would be greatly appreciated.
BN
- Neal
- Reputation: 0
- Posts: 2
- Joined: Fri Nov 17, 2006 9:00 pm
- Highscores: 0
- Arcade winning challenges: 0
0
What I did...
I switched my connection type to ADO from RDO. That allowed me to pull the entire contents of the field into my VB code, however, I wasn't able to hold the value past a couple lines of code execution.
My remedy to that was to assign the value to a variable then close the connection. I actually had three fields that were necessary for my project that were of the nText type, so I repeated the steps outlined here three times in the code.
The next problem was the RTF codes in the results which I handled by pasting to a RichTextBox in my form, then writing the RichTextBox.Text value out to my finished php file.
This might all sound like hacking, but it works. If anyone has suggestions for making it a little more elegant, I'm all ears.
My remedy to that was to assign the value to a variable then close the connection. I actually had three fields that were necessary for my project that were of the nText type, so I repeated the steps outlined here three times in the code.
The next problem was the RTF codes in the results which I handled by pasting to a RichTextBox in my form, then writing the RichTextBox.Text value out to my finished php file.
This might all sound like hacking, but it works. If anyone has suggestions for making it a little more elegant, I'm all ears.
- Neal
- Reputation: 0
- Posts: 2
- Joined: Fri Nov 17, 2006 9:00 pm
- Highscores: 0
- Arcade winning challenges: 0
|
|