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
Code to importing Docx file
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Code to importing Docx file
The simplest application:
For TRichView
Place RichView1: TRichView (or TRichViewEdit) on a form.
Place RVStyle1: TRVStyle on a form.
Assign RichView1.Style := RVStyle1.
Call:
For ScaleRichView
Place SRichViewEdit1: TSRichViewEdit on a form.
Call:
For TRichView
Place RichView1: TRichView (or TRichViewEdit) on a form.
Place RVStyle1: TRVStyle on a form.
Assign RichView1.Style := RVStyle1.
Call:
Code: Select all
RichView1.Clear;
RichView1.LoadDocX(FileName);
RichView1.Format;
Place SRichViewEdit1: TSRichViewEdit on a form.
Call:
Code: Select all
SRichViewEdit1.Clear;
SRichViewEdit1.RichViewEdit.LoadDocX(FileName);
SRichViewEdit1.Format;