repeated tag of database value

General TRichView support forum. Please post your questions here
Post Reply
haidomingo
Posts: 16
Joined: Tue Nov 10, 2009 7:27 pm

repeated tag of database value

Post by haidomingo »

Hi,
I wanted to know if you can do this with trichview:

1 create a RTF file
2 insert a value from a database field (values refer to a single record placed in on diffrent part of fole rft)

3 save the file as RTF

4 load the rtf file

5 show rft file with real value of field in a database.

I tried to use AddItem and GetItem and GetItemTag.
but I have not found a way to get list of repeated tag....

Thanks and sorry for my bad english
haidomingo
Posts: 16
Joined: Tue Nov 10, 2009 7:27 pm

project example file

Post by haidomingo »

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

Post by Sergey Tkachenko »

Your code is correct (for documents without tables).
But your sample document 'prova.rvf' has a problem: even empty lines, with transparent background, have non-empty tag. Because of this, these empty lines are changed to field value too.
haidomingo
Posts: 16
Joined: Tue Nov 10, 2009 7:27 pm

Post by haidomingo »

Sergey Tkachenko wrote:Your code is correct (for documents without tables)....
If the document contains tables how do I change the code?
Sergey Tkachenko
Site Admin
Posts: 17602
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Choose one of these demos as an example: http://www.trichview.com/forums/viewtopic.php?t=8
haidomingo
Posts: 16
Joined: Tue Nov 10, 2009 7:27 pm

Post by haidomingo »

Sergey Tkachenko wrote:Choose one of these demos as an example: http://www.trichview.com/forums/viewtopic.php?t=8
Thanks I changed the code.
New code .. http://www.mediafire.com/download.php?nkky5wmnttj
I used recursion in the table.
Seems to work.
There are other cases in which my example is not working properly?

Many thanks Sergey Tkachenko and sorry for my bad english
Post Reply