Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi Yuri,
The problem is that I want to embed tabs and CRLF in one of the merge fields in order to simulate a table of five columns. If I have to, I'll drop mail merge and "hand build" each letter at run time and build the table, but I'd love to keep it a simple mail merge.
It's inconceivable to me that MS would allow us to specify a number of delimiters through the interface but not have a way through the API but it wouldn't be the first brick wall from Word.
Thanks,
Gary
>>Hi,
>>I have a merge routine using a txt file with |(pipe) for the field and ^ for the record delimiters. Odd choices I know, but Word allows them. However, at merge time Word asks for the delimiters. When these are picked, the merge works fine but I want to tell Word what to use instead of getting the dialog.
>>
>>Anyone know how to tell Word what the delimiters are?
>>
>>Thanks,
>>Gary
>
>Probably the easiest way would be to convert delimeters/separators to the "standard" characters, like:
>
>strtofile(CHRTRAN(FILETOSTR(original_txtfile),[|^],["]+CHR(13))),temp_txtfile)
>
>And then you may use the temp_txtfile as a data source for the mailmerge.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement