Page 1 of 1

repeated tag of database value

Posted: Tue Nov 10, 2009 7:53 pm
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

project example file

Posted: Wed Nov 11, 2009 4:45 am
by haidomingo

Posted: Thu Nov 12, 2009 11:41 am
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.

Posted: Fri Nov 13, 2009 4:31 pm
by haidomingo
Sergey Tkachenko wrote:Your code is correct (for documents without tables)....
If the document contains tables how do I change the code?

Posted: Sat Nov 14, 2009 10:01 am
by Sergey Tkachenko
Choose one of these demos as an example: http://www.trichview.com/forums/viewtopic.php?t=8

Posted: Sat Nov 14, 2009 3:42 pm
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