Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Rich Textbox Control Object in CF

Status
Not open for further replies.

GSXR179

Programmer
Oct 11, 2001
34
US
Hi,

Has anyone used the Microsoft Rich Textbox Control object in the Cold fusion, Script, Active X menubar? I'm trying to display rtf content in a web browser? Any Ideas?

Thanks in advance

Mike
 
Well not really, I just need to display rtf information to the screen. I'm working with a database that stores rtf content inside the database, I have a custom tag that converts this information into html. This works fine but it consumes a lot of resources. So I'm looking for other ways to display this info.

Thanks
 
try this:

1. in editor.cfm template, find this:

<cffile action=&quot;write&quot;
file=&quot;C:\Inetpub\ output=&quot;#Form.HTMLsource#&quot;>

change path and fileName if needed;

2. use editor and write something using italic bold or whatever format you want; save it...

3. what u have just saved you will find writen as txt file in the directory u specified above; now u can use following code to output it:


<cffile action=&quot;read&quot;
file=&quot;c:\inetpub\ variable=&quot;testing&quot;>

<cfoutput>
<table>
<tr><td>
#ParagraphFormat(testing)#
</td></tr>
</table>
</cfoutput>

this way u don't use database resources at all; now, is this what you are looking for? Sylvano
dsylvano@hotmail.com

&quot;every and each day when I learn something new is a small victory...&quot;
 
When I tried the method described above it did write to the specified file. Now I have to figure out how to convert the rtf into html or plain text. Here's the rtf content that got written in the filename.txt file:

{\rtf1\ansi\deflang1033\ftnbj{\fonttbl{\f0\fcharset0 \fRoman Times New Roman;}{\f1\fcharset0 \fswiss Arial;}

{\f2\fcharset0 \fmodern Courier New;}}{\colortbl ;\red255\green255\blue255 ;}{\stylesheet{\fs20\cf0\cb1

Normal;}{\cs1\additive\cf0\cb1 Default Paragraph Font;}{\s2\f2\fs18\b\v\cf0\cb1\shading1000

RAW;}}\margl1800\margr1800\margt1440\margb1440\headery720\footery720\formshade\sectd\marglsxn1800\margrsxn1800\margtsxn1440\margbsxn1440\headery720\footery720

\sbkpage\pgncont\plain\f1\cf0\fs20\pard\s2\ql\shading1000\plain\f1\cf0\fs20\f2\cf0\fs18\b\v

<cfoutput> <a href=&quot;
target=&quot;audio&quot;>Audio Introduction</a> </cfoutput>\par\pard\plain\f1\cf0\fs20\cf0\par

As in any software system, VISION contains a lot of fundamentals that you need

to know. There are basic rules of navigation, operating rules, characteristics

of workscreens and lots of features that will enable you to do your work. Proficient

system users know all of these fundamentals; that's what makes them &quot;proficient.&quot;

\par\par It would take a long time for you to learn all of the basics up front.

By the time you did, you'd be wondering when you are ever going to get into

anything really useful! Instead we'll overview the very essentials first.

In this lesson, we'll cover just those rules, features and operations that you'll

need to get started. \par\par Later, as you learn how to perform core activities

in VISION, we'll introduce more features. By the time you get through all of

the activities, you'll have been introduced to every important feature.\par}

ÿ

Any Ideas?

Thanks Again.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top