![]() |
|
#1
|
|||
|
|||
|
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. Thanks in advance. http://softlock.organizermp3.com (23.Nov.2002) |
|
#2
|
|||
|
|||
|
use components
This is for Delphi 2 but you can change it for your verion because there are the sources |
|
#3
|
|||
|
|||
|
Have you tested it?
http://softlock.organizermp3.com (23.Nov.2002) |
|
#4
|
|||
|
|||
|
or try use
I don't use it!!!! |
|
#5
|
|||
|
|||
|
I tried one Rtf2Html but it showed me an "Access Violation". If you manage to fix it, I will accept your answer.
http://softlock.organizermp3.com (23.Nov.2002) |
|
#6
|
|||
|
|||
|
What delphi version are you working with?
Greetz, ::TeD On The NeT:: =[ QUESTIONS ]========================================== =[ 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 ================================================== ====== |
|
#7
|
|||
|
|||
|
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 } http://softlock.organizermp3.com (23.Nov.2002) |
|
#8
|
|||
|
|||
|
Delphi 6.
http://softlock.organizermp3.com (23.Nov.2002) |
|
#9
|
|||
|
|||
|
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.
http://softlock.organizermp3.com (23.Nov.2002) |
|
#10
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|