trichview.com Forum Index trichview.com
TRichView support forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Demo] Simple scripting

 
Post new topic   Reply to topic    trichview.com Forum Index -> Examples, Demos
View previous topic :: View next topic  
Author Message
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6576

PostPosted: Sun Aug 28, 2005 11:21 am    Post subject: [Demo] Simple scripting Reply with quote

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
View user's profile Send private message Visit poster's website
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6576

PostPosted: Sun Sep 11, 2005 6:33 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
wvd_vegt



Joined: 30 Aug 2005
Posts: 84

PostPosted: Wed Sep 14, 2005 7:01 pm    Post subject: Reply with quote

The link should read

http://www.trichview.com/support/files/script2.zip

Some characters where chopped off.
Back to top
View user's profile Send private message
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6576

PostPosted: Thu Sep 15, 2005 4:15 am    Post subject: Reply with quote

thanks, fixed
Back to top
View user's profile Send private message Visit poster's website
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6576

PostPosted: Sat Feb 18, 2006 5:17 pm    Post subject: Reply with quote

http://www.trichview.com/support/files/script2.zip is updated.
Bug fix + processing non-text items.
Back to top
View user's profile Send private message Visit poster's website
uniandy



Joined: 12 Oct 2006
Posts: 13

PostPosted: Fri Dec 01, 2006 1:41 pm    Post subject: InsertMultilineText to support unicode for multiline text? Reply with quote

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
View user's profile Send private message
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6576

PostPosted: Wed Feb 14, 2007 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    trichview.com Forum Index -> Examples, Demos All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group