trichview.com

trichview.support




Re: Dymanic Mail Merge Template


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/22/2004 18:13:59


You can use this universal method:

- use the code from demos to create document for the first record in

RichView1;

- copy document to the end of RichView2 (using

RichView2.InsertRVFFromStream(RichView2.ItemCount, ...))

- repeat for the second record, etc.



> Actually I use the code from both demo as in my table there is a string

> type fields and blob(rvf) field. Everything works fine but the question

> is how to create dynamic Template so that I could place into the

> template not only selected record fields like in MM and MM2 demo but all

> records from the table. It should be similar to report.

>

> As I understand everything should work so:

>

> You load template into TRVF and place the fields value of first record.

The

> you

> move cursor to the end of document. Then you do not load the template

> but use InsertRVFFromStream instead to insert the same template to the end

> of

> document, then load the fields of second record and etc. Until the end of

> Table.

>

> I now how to do that, but  I would like to hear the suggestions how to

make

> it in most optimal way.

>





Powered by ABC Amber Outlook Express Converter