Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
displaying RTF text in asp
Old 03-29-2005, 05:36 AM displaying RTF text in asp
Junior Talker

Posts: 1
Trades: 0
I have a database which has a text field currently holding rtf text. A sample is:

{\rtf1\ansi\deff2\deflang1033 {\fonttbl
{\f0\fswiss\fcharset1 MS Sans Serif;}
{\f1\fswiss\fcharset0 ARIAL;}
}

{\colortbl
\red0\green0\blue0;\red0\green0\blue128;\red0\gree n128\blue0;\red0\green128\blue128;
\red128\green0\blue0;\red128\green0\blue128;\red12 8\green128\blue0;\red192\green192\blue192;
\red128\green128\blue128;\red0\green0\blue255;\red 0\green255\blue0;\red0\green255\blue255;
\red255\green0\blue0;\red255\green0\blue255;\red25 5\green255\blue0;\red255\green255\blue255;
}
\paperw8640 \margr0\margl0\ATXph0 \plain \fs16 \f1 \fs24 Vauxhall\v \ATXv32000 <FP>B\v0 \ATXv0 Vectra\v \ATXv32000 <FP>B\v0 \ATXv0 2004\v \ATXv32000 <FP>B\v0 \ATXv0 Fsh, one owner, stereo, s/r.\v \ATXv32000 <FP>B\v0 \ATXv0 \'a39,000\v \ATXv32000 <FP>B\v0 \ATXv0 01344 86
1133
\par
}


I want to display the bits I have highlighted in red in my page but ignore all the rest of the rtf formatting.
Any help would be greatly appreciated.
On a bit of a tight deadline for this so please help asap.

thanks in Advance
Natman
Natman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-29-2005, 04:01 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
I dunno how your database/site is set up, so this may sound unrelated...
Could you not store the values seperate from the RTF formatting, like fields for "Make", "Model", "Year", "Descrition", "Phone", then writing out the RTF text as a litral with the data to the fields embedded at runtime?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to displaying RTF text in asp
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11666 seconds with 12 queries