| View previous topic :: View next topic |
| Author |
Message |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6576
|
Posted: Sun Aug 28, 2005 11:21 am Post subject: [Demo] Simple scripting |
|
|
http://www.trichview.com/support/files/script.zip
An example of processing document templates having both text fields
(including mutliline 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 2009. Now it supports Unicode text (text processing is in ANSI for Delphi 4-2007 and in Unicode for Delphi 2009+)
Last edited by Sergey Tkachenko on Thu Dec 11, 2008 2:53 pm; edited 1 time in total |
|
| Back to top |
|
 |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6576
|
Posted: Sun Sep 11, 2005 6:33 pm Post subject: |
|
|
http://www.trichview.com/support/files/script2.zip
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.
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+)
Last edited by Sergey Tkachenko on Thu Dec 11, 2008 2:59 pm; edited 2 times in total |
|
| Back to top |
|
 |
wvd_vegt
Joined: 30 Aug 2005 Posts: 84
|
|
| Back to top |
|
 |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6576
|
Posted: Thu Sep 15, 2005 4:15 am Post subject: |
|
|
| thanks, fixed |
|
| Back to top |
|
 |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6576
|
|
| Back to top |
|
 |
uniandy
Joined: 12 Oct 2006 Posts: 13
|
Posted: Fri Dec 01, 2006 1:41 pm Post subject: InsertMultilineText to support unicode for multiline text? |
|
|
Hi Sergey-
Do you have any updates for:
Not implemented:
...
- supporting Unicode text (some modifications in InsertMultilineText are required for it ...
http://www.trichview.com/support/files/script2.zip
Do you have any solutions on how to change InsertMultilineText to support unicode for multiline text?
Andy |
|
| Back to top |
|
 |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6576
|
Posted: Wed Feb 14, 2007 5:03 pm Post subject: |
|
|
http://www.trichview.com/support/files/script2.zip
This demo now supports Unicode in editor. But in Delphi 4-2007 it still performs all processing in ANSI string, so conversion Unicode -> ANSI -> Unicode is made. Conversion may lose some characters.
http://www.trichview.com/support/files/scriptw.zip
This is a Unicode version of this demo. All processing is in WideStrings/UnicodeStrings.
2008-Dec-11: Updated for compatibility with TRichView 11 and Delphi 2009 |
|
| Back to top |
|
 |
|