trichview.com

trichview.support




Re: Merging data from one TDBRichViewEdit To TRichViewEdit


Return to index


Author

Message

Fredrik Larsson

Posted: 02/24/2003 23:13:58


Yes I have. They work for more simple mailmerging feature. I want to have

something more complicated. For example I want certain parts in the template

to be looped through several times, kind of master detail relationship.


Template Example (uppercase is code fields)


"Your order: ORDER.ORDERID has been processed.


ORDERROW

ORDERROW.PRODID ORDERROW.PRODNAME ORDERROW.PRICE

ORDERROW_NEXT


Total Sum: ORDER.TOTAL_SUM"


For this to be possible I need to loop through cerain parts several times. I

am using this to copy the layout:

PreviewEdit.InsertText(DesignEdit.GetItemText(0));

PreviewEdit is the template (in database) and DesignEdit (edit view) is the

filled richview. The problem is that linebreaks isn't copied. Kind of this:


"Your order: ORDER.ORDERID has been processed.ORDERROW ORDERROW.PRODID

ORDERROW.PRODNAME ORDERROW.PRICE ORDERROW_NEXT Total Sum: ORDER.TOTAL_SUM"


I don't know what I am missing out. I can imagine that I am missing some

styleinfo or using wrong method to copy the text.


"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> Did you see demos in

>

> Demos\Delphi\Assorted\Fields\MailMerge\

> Demos\Delphi\Assorted\Fields\MailMerge2\

> ?

>

>

> > Hi,

> >

> > I have a template stored in the database and want to create a report in

a

> > trichviewedit. I can loop through them and get text data but can't

figure

> > out how to maintain the line breaks. It's possible that other formatting

> > also is lost. How can I do this? The merge examples rely on loading

> original

> > file but I need to loop through my template a couple of times.

> >

> > Regards, Fredrik.

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter