Page 1 of 1

[Demo] Simple scripting

Posted: Sun Aug 28, 2005 11:21 am
by Sergey Tkachenko
script.zip
(5.25 KiB) Downloaded 1473 times
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)

[+] History of updates
2008-Dec-11: Updated for compatibility with TRichView 11 and Delphi 2009. Now it supports Unicode text (text processing is in ANSI for Delphi 4-2007 and in Unicode for Delphi 2009+)
2018-Apr-9: Updated for compatibility with TRichView 17.3. All text is Unicode and is processed as Unicode.
[+] Old versions
http://www.trichview.com/support/files/script.zip - for TRichView 11-17.2

Posted: Sun Sep 11, 2005 6:33 pm
by Sergey Tkachenko
script2.zip
(5.46 KiB) Downloaded 1476 times
Improved.
In this version, field codes inside field values are ignored.
There is also a fix (see the comments in Unit1.pas).

I decided to leave the both versions available, but I recommend to use this one.

[+] History of updates
2008-Dec-11: for compatibility with TRichView 11 and Delphi 2009. Now it supports Unicode text (text processing is in ANSI for Delphi 4-2007 and in Unicode for Delphi 2009+
2011-Oct-11: for compatibility with TRichView 13.4
2018-Apr-8: for compatibility with TRichView 17.3
[+] Old versions
http://www.trichview.com/support/files/script2.zip - for TRichView 13.4-17.2

Posted: Wed Feb 14, 2007 5:03 pm
by Sergey Tkachenko
Update: this version of demo is for old version of TRichView, from 13.4 to 17.2. The main version of this demo (see above) is compatible with TRichView 17.3 and always processes all text as Unicode.

[+] Old versions
http://www.trichview.com/support/files/scriptw.zip
This is a Unicode version of this demo. All processing is in WideStrings/UnicodeStrings.
[+] History of updates
2008-Dec-11: for compatibility with TRichView 11 and Delphi 2009
2011-Oct-1: for compatibility with TRichView 13.4