[Demo] Simple scripting

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 14164
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Demo] Simple scripting

Post by Sergey Tkachenko » Sun Aug 28, 2005 11:21 am

script.zip
(5.25 KiB) Downloaded 74 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
Last edited by Sergey Tkachenko on Thu Dec 11, 2008 2:53 pm, edited 1 time in total.

Sergey Tkachenko
Site Admin
Posts: 14164
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Sun Sep 11, 2005 6:33 pm

script2.zip
(5.46 KiB) Downloaded 63 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
Last edited by Sergey Tkachenko on Sat Oct 01, 2011 8:42 am, edited 3 times in total.

Sergey Tkachenko
Site Admin
Posts: 14164
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Wed Feb 14, 2007 5:03 pm

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

Post Reply