Search found 2 matches

by hamden
Thu Dec 07, 2023 6:19 pm
Forum: Support
Topic: Code to importing Docx file
Replies: 1
Views: 29291

Code to importing Docx file

Hello;
I would like to know if there´s a sample code or snippet code (or a demo) of importing DOCX file to a TRichView (or TScaleRichView) component.

Best regards;
Hamden Vogel
by hamden
Sun Jan 25, 2009 12:46 pm
Forum: Support
Topic: How to transfer text between TRichView And TRichViewEdit
Replies: 10
Views: 29039

Hi;
Try using TStream:

var Stream: TMemoryStream;

Stream := TMemoryStream.Create;
srv.RichViewEdit.SaveRVFToStream(Stream, False);
Stream.Position := 0;
rv.LoadRVFFromStream(Stream);
Stream.Free;
rv.Format;


let me know your answer;
Hamden