Page 1 of 1
Help in Replace
Posted: Fri Jun 09, 2006 11:58 pm
by rcor
Hello to all Im trying to buid a MailMerge and took the sample from the first mailmerge my problem is this:
Hello Mr. {name} we would like to invite you
After the process of replace executes i get
Hello Mr. John Smith
And I lose the other words.
Maybe I have some parameter wrong or something is in False or in True i use TrichView and the Style but it is not close like in demo i left it open and only use one Trichview in demo they use 2 one for template and one for output.
TIA
Ramiro
Posted: Sat Jun 10, 2006 10:53 am
by Sergey Tkachenko
Can you send me a simple project reproducing this problem?
I just tested, the demo
http://www.trichview.com/support/files/ ... e-text.zip works fine.
Help in Replace
Posted: Sat Jun 10, 2006 5:04 pm
by rcor
Thanks for your reply but Im not unsing the code from mailmerge-text as sample Im using the one that uses PChar as string and tag, is the first demo in the delphi demo samples.
TIA
Ramiro
Ps.
The demo works ok i think i may have some parameter in false that sould be in true or maybe in the styles i may have somothing with another value.
Posted: Sat Jun 10, 2006 6:14 pm
by Sergey Tkachenko
Well, I can only repeat my request: please send me a simple project reproducing the problem.
Help in Replace
Posted: Sat Jun 10, 2006 9:04 pm
by rcor
Hello again
I forgot to mention that Im using Blob Field to store document of the mailmerge i will build a sample project to send it to you.
The editor part of the mailmerge was build using the sample of the editors.
and the info on the mailmerge. from the first demo of mailmerge.
In the editor part when i load from database to editor i use TStream and when i save it to the database i use TMemoryStream this because it was the only form i could find to save it to field.
I dont now if this could maybe be affecting the finall process.
TIA
Ramiro
Help in Replace
Posted: Sat Jun 10, 2006 10:48 pm
by rcor
Hello Again
I tried the idea from the demo mailmerge-text in all whent ok here evrething ok i think with this demo the info is the last caracter that tells where is the end for the replace of information.
Before this I tried to send it to file because maybe that was the problem and no luck the info was replaced.
I will still sendo you the demo so you can tell what i did wrong or how to correct the problem.
TIA
Ramiro