trichview.support
Re: How to read the image , graphic, bitmap and controls as it is , not only the information about the image / controls. |
Author |
Message |
Sergey Tkachenko |
Posted: 08/02/2002 10:39:57 Hello, Do you want just to copy one RV to another? The simplest way is to do it via streams: Stream: TMemoryStream; Stream := TMemoryStream.Create; RichView1.SaveRVFToStream(Stream, False); Stream.Position := 0; RichView2.LoadRVFFromStream(Stream); Stream.Free; RichView2.Format; It's also possible to use RichView2.AppendFrom(RichView1), but AppendFrom does not copy controls and tables (but copies images). Or you can read information item by item, and copy item by item. Example of reading information: Demos\Delphi\Tutorial\2 Items-Checkpoints-Tags-Hypertext\1 Info about Items\ > Hello, > > Q1> In the RichView1 , if I have Contents of the Rtf file > > Task > Description: > Description Description Description Description Description > Description Description Description Description Description > > Image Inserted > > Imageplaced(Actual Image placed) > > Control Inserted > > Controlplaced(Actual control placed) > > I want to read the content RichView1 to RichView2, ie. paragraph by > paragraph. > When I come to Image / control , the text associated with it can be read in > to RichView2, but I want that Image/ control should also be actually copied > or placed in to Richview2. > > Please Help. > > Thanks, > > > > > |
Powered by ABC Amber Outlook Express Converter