Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2003, 02:14 AM
slavikn slavikn is offline
Senior Member
 
Join Date: Aug 2001
Posts: 1,155
Default RTF to HTML

Hi,

I need to convert an RTF file (or string) to HTML.
Please give me a function which does the work.

P.S. I've searched this forum, but found nothing that works.

Please check that the function works before posting!

Thanks in advance.

NEW! http://www.organizermp3.com (20.May.2003)
http://softlock.organizermp3.com (23.Nov.2002)
Reply With Quote
  #2  
Old 07-16-2003, 02:39 AM
kalifat kalifat is offline
Senior Member
 
Join Date: Apr 2003
Posts: 623
Default RE: RTF to HTML

use components
http://www.torry.net/vcl/vcltools/unitsconversion/rtf2html.zip

This is for Delphi 2 but you can change it for your verion because there are the sources

Accept if it helps
Reply With Quote
  #3  
Old 07-16-2003, 02:40 AM
slavikn slavikn is offline
Senior Member
 
Join Date: Aug 2001
Posts: 1,155
Default RE: RTF to HTML

Have you tested it?

NEW! http://www.organizermp3.com (20.May.2003)
http://softlock.organizermp3.com (23.Nov.2002)
Reply With Quote
  #4  
Old 07-16-2003, 02:41 AM
kalifat kalifat is offline
Senior Member
 
Join Date: Apr 2003
Posts: 623
Default RE: RTF to HTML

or try use
http://www.torry.net/apps/utilities/other/rtf2html.zip

I don't use it!!!!

Accept if it helps
Reply With Quote
  #5  
Old 07-16-2003, 02:43 AM
slavikn slavikn is offline
Senior Member
 
Join Date: Aug 2001
Posts: 1,155
Default RE: RTF to HTML

I tried one Rtf2Html but it showed me an "Access Violation". If you manage to fix it, I will accept your answer.

NEW! http://www.organizermp3.com (20.May.2003)
http://softlock.organizermp3.com (23.Nov.2002)
Reply With Quote
  #6  
Old 07-16-2003, 02:46 AM
Ted On The NeT Ted On The NeT is offline
Senior Member
 
Join Date: Apr 2001
Posts: 2,182
Default RE: RTF to HTML

What delphi version are you working with?

Greetz,
::TeD On The NeT::

=[ QUESTIONS ]==========================================
please click Accept as Answer if my reply helped you.

=[ EXTRA INFO ]=========================================
Location : Netherlands (GMT +01.00)
Languages : English, Dutch, German
Age : 26
ICQ : Be smart and figure out what my UIN is...
--------------------------------------------------------
Used OS : Win2k SR4 | Win2k SR4
Delphi # : Enterprise 5 SP2 | Professional/Enterprise 7
================================================== ======
Reply With Quote
  #7  
Old 07-16-2003, 02:57 AM
slavikn slavikn is offline
Senior Member
 
Join Date: Aug 2001
Posts: 1,155
Default RE: RTF to HTML

This one doesn't work:

Try to convert this fine to HTML:

{\rtf1\fbidis\ansi\ansicpg1251\deff0\deflang1049{\ fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\fnil\fcharset204{\*\fname Times New Roman;}Times New Roman CYR;}}
{\colortbl ;\red0\green64\blue0;\red255\green0\blue0;\red0\gr een0\blue0;}
\viewkind4\uc1\pard\ltrpar\cf1\f0\fs20 T\lang1033 est \b bold \cf2\b0 red\cf3 sentence.\cf1\lang1049\f1\par
}

NEW! http://www.organizermp3.com (20.May.2003)
http://softlock.organizermp3.com (23.Nov.2002)
Reply With Quote
  #8  
Old 07-16-2003, 02:58 AM
slavikn slavikn is offline
Senior Member
 
Join Date: Aug 2001
Posts: 1,155
Default RE: RTF to HTML

Delphi 6.

NEW! http://www.organizermp3.com (20.May.2003)
http://softlock.organizermp3.com (23.Nov.2002)
Reply With Quote
  #9  
Old 07-16-2003, 03:05 AM
slavikn slavikn is offline
Senior Member
 
Join Date: Aug 2001
Posts: 1,155
Default RE: RTF to HTML

P.S. If you compile the EXE it will show you an error when you try to convert an RTF to HTML. The provided EXE file doesn't show an error, but it doesn't convert correctly.

NEW! http://www.organizermp3.com (20.May.2003)
http://softlock.organizermp3.com (23.Nov.2002)
Reply With Quote
  #10  
Old 07-16-2003, 03:10 AM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,573
Default RE: RTF to HTML

the free components in torry like rtf2html only convert basic rtf format (without images and complex align)

the only solution that i know that works is commercial..
RichView v1.7.10 (and it works!)


Regards
BaraoZemo

ps, donīt forget to Accept as Answer if this helped you!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT. The time now is 06:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.