trichview.com

trichview.support




Re: copying cell content at runtime?


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/27/2002 17:10:54


var Stream: TMemoryStream;

     color: TColor;



  Stream := TMemoryStream.Create;

  table.Cells[0,0].SaveRVFToStream(Stream, False, clNone, nil, nil);

  Stream.Position := 0;

  table.Cells[1,0].LoadRVFFromStream(Stream, color, nil, nil);

  Stream.Free;


// if table was already inserted, you need to reformat document:

  table.Changed;

  RichViewEdit1.Format;


This operation cannot be undone (if you want undoable operation, you need to

activate editor for the target cell and insert RVF from stream into it).



> Hello,

>

> How can I copy the content of a cell into another cell at runtime?

>

>

> thanks a lot

>

> Steffen K�thner





Powered by ABC Amber Outlook Express Converter