Article View: borland.public.cppbuilder.nativeapi
Article #14876Re: RTF to plain text
From: Dmitry Mikhilov
Date: Tue, 29 Jul 2003 15:49
Date: Tue, 29 Jul 2003 15:49
28 lines
1919 bytes
1919 bytes
I thought that it is excessive to create and hide "natively visible" component in order to perform some routine background processing instead of performing, say, direct dll function call (kinda shooting mosquitoes with the gun :). Dmitry "Hans Galema" <j.m.galema.dontusethis@maartens.nl> wrote: news:3f2676e3@newsgroups.borland.com... > Dmitry Mikhilov wrote: > > > Dynamic creation of "fake" TRichEdit component, filling it with incoming RTF > > stream, removing the formatting and saving the result came to my mind > > first, by seemed to be a little bit non-elegant... > > > The only thing you have to do is load the file in a TRichEdit, > then set RichEdit1->PlainText to true and then call > > RichEdit1->Lines->SaveToFile ( ... ); > > And you're done. > > Very elegant. > > Hans. >
Technical Details
Message-ID:
<3f269714@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f263c4b@newsgroups.borland.com> <3f26442d$1@newsgroups.borland.com> <3f264bed@newsgroups.borland.com> <3f2676e3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2d859c765139b26e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-29 09:12:08 PST From: "Dmitry Mikhilov" <dm1@fromru.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f263c4b@newsgroups.borland.com> <3f26442d$1@newsgroups.borland.com> <3f264bed@newsgroups.borland.com> <3f2676e3@newsgroups.borland.com> Subject: Re: RTF to plain text Date: Tue, 29 Jul 2003 19:49:10 +0400 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 195.242.17.171 Message-ID: <3f269714@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059493652 195.242.17.171 (29 Jul 2003 08:47:32 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail