Search found 9413 matches
- Sun Aug 28, 2005 11:42 am
- Forum: Examples, Demos
- Topic: [Examples] Count of characters and words
- Replies: 37
- Views: 238286
[Examples] Count of characters and words
Calculating a number of characters uses CRVData; function GetCharCount(RVData: TCustomRVData): Integer; var i,r,c: Integer; table: TRVTableItemInfo; begin Result := 0; for i := 0 to RVData.Items.Count-1 do if RVData.GetItemStyle(i)>=0 then begin // this is a text item inc(Result, RVData.GetItemText...
- Sun Aug 28, 2005 11:40 am
- Forum: Examples, Demos
- Topic: [Example] Loading UTF-8 files
- Replies: 0
- Views: 31169
[Example] Loading UTF-8 files
Very simple example - how to load Unicode UTF-8 file: procedure LoadUTF8(rv: TCustomRichView; const FileName: String; StyleNo, ParaNo: Integer); var Stream: TFileStream; s: TRVRawByteString; ws: TRVUnicodeString; begin Stream := TFileStream.Create(FileName, fmOpenRead); SetLength(s, Stream.Size); St...
- Sun Aug 28, 2005 11:27 am
- Forum: Examples, Demos
- Topic: [Demo] Sending HTML email. Saving MIME-encoded files.
- Replies: 40
- Views: 3294461
[Demo] Sending HTML email. Saving MIME-encoded files.
This example shows how to save HTML file with images in one file: https://www.trichview.com/support/files/mime.zip This file contains 3 demos: Indy - sending HTML emails using Indy Indy.old - sending HTML emails using Indy but preparing email body manually. If you use Delphi XE6 or older, this demo ...
- Sun Aug 28, 2005 11:26 am
- Forum: Examples, Demos
- Topic: [RichViewActions] How to access page setup properties
- Replies: 5
- Views: 54531
[RichViewActions] How to access page setup properties
1) Margins are stored in RVPrint, assigned to RVAControlPanel.RVPrint 2) Properties of header and footer are stored in global objects RVAControlPanel.Header and RVAControlPanel.Footer (Text, Alignment, PrintOnFirstPage properties) 3) Page size, orientation and source are stored in the global for the...
- Sun Aug 28, 2005 11:21 am
- Forum: Examples, Demos
- Topic: [Demo] Simple scripting
- Replies: 2
- Views: 49525
[Demo] Simple scripting
script.zip An example of processing document templates having both text fields (including multiline ones) and IF commands. IF commands allow to exclude some part of text on condition (comparing field value with string constant) 2008-Dec-11: Updated for compatibility with TRichView 11 and Delphi 200...
- Sun Aug 28, 2005 11:19 am
- Forum: Examples, Demos
- Topic: [Demos] Mail Merge
- Replies: 20
- Views: 271696
[Demos] Mail Merge
Information about and comparison of TRichView mail merge demos. 2 of them are included in demo projects, others are available as separate downloads. Comparison Chart for TRichView Mail Merging Demos The recommended way to implement merge fields in our editors is Report Workshop . Demos\Delphi\Assort...
- Sun Aug 28, 2005 10:25 am
- Forum: Examples, Demos
- Topic: [Example] How to move caret to the paragraph
- Replies: 1
- Views: 42713
[Example] How to move caret to the paragraph
A very simple example: how to move caret to the beginning of the n-th paragraph procedure GoToParagraph(rve: TCustomRichViewEdit; ParagraphIndex: Integer); var i: Integer; begin for i := 0 to rve.ItemCount-1 do begin if rve.IsParaStart(i) then dec(ParagraphIndex); if ParagraphIndex<0 then begin rve....
- Sat Aug 27, 2005 3:01 pm
- Forum: Support
- Topic: New support forums. Please read.
- Replies: 23
- Views: 115083
New support forums. Please read.
New forums Starting from August 27, 2005, TRichView support forums are moved from newsgroups to phpBB. The forums are run in test mode, but the most probably they will be permanent. For registered users: how to get access to the private forums If you are a registered TRichView user, 1) register on ...