DocRoot is taken from the XML tree:
MainRoot.Items.AddTag('document1', T.Items[0], T);
DocRoot := MainRoot.Items[MainRoot.Items.Count-1];
Search found 9421 matches
- Tue Aug 30, 2005 11:35 am
- Forum: Support
- Topic: Headers ans BCB6
- Replies: 4
- Views: 23455
No, it's not normal, SetHeader() is a public method of TRVPrint, and it must be in PtblRV.hpp. I checked the header included in the trial version, it's there: void __fastcall SetHeader(Crvfdata::TCustomRVFormattedData* RVData); May be you have duplicated HPP files (HPP files of older version of TRic...
- Tue Aug 30, 2005 11:30 am
- Forum: Support
- Topic: Relative hyperlinks
- Replies: 9
- Views: 43239
- Tue Aug 30, 2005 11:26 am
- Forum: Support
- Topic: old newsgroup archive ??
- Replies: 4
- Views: 25499
- Mon Aug 29, 2005 5:49 pm
- Forum: Support
- Topic: RVXML problem
- Replies: 4
- Views: 24861
I am not sure that TXMLTag can be used outside of TRVXML. Some time ago I made an example how to save 2 richviews in one XML, may be it can be useful uses RichViewXML, RVXMLBase; RichView1, RichView2 - trichviews to load/save. RichViewXML1 - trichviewxml. This example saves and loads two documents i...
- Mon Aug 29, 2005 4:20 pm
- Forum: Support
- Topic: old newsgroup archive ??
- Replies: 4
- Views: 25499
Unfortunately, I was not able to contact the newsgroup server owners for the quite a long time. I still do not know the status of this archive. I still hope it's not damaged when of the server was crashed. In the worst case, I have copies of all my answers to the newsgroup. In the best case, newsgro...
- Sun Aug 28, 2005 11:46 am
- Forum: Support
- Topic: New support forums. Please read.
- Replies: 23
- Views: 115264
- Sun Aug 28, 2005 11:43 am
- Forum: Examples, Demos
- Topic: [Examples] Count of characters and words
- Replies: 37
- Views: 238811
Calculating a number of words You can use a class from RVWordEnum.pas Create a class TWordCounter = class(TRVWordEnumerator) private FCounter: Integer; protected function ProcessWord: Boolean; override; public function GetWordCount(rve: TCustomRichViewEdit): Integer; end; function TWordCounter.Proc...
- Sun Aug 28, 2005 11:42 am
- Forum: Examples, Demos
- Topic: [Examples] Count of characters and words
- Replies: 37
- Views: 238811
[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: 31270
[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: 3301362
[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: 54630
[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: 49608
[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: 277486
[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: 42787
[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....