>Hello All
>
> I'm doing a DDE conection with microsoft word 97 but i have any problem
> i'm using the follow code:
>
> Proposta = DDEInitiate('WinWord', 'System')
> result=DDEexecute(Proposta, alltrim(edital.desc_cli))
>
> The edital.desc_cli is a memo field and its value is:
>
> "Governo do Estado do Rio Grande do Sul
> Prefeitura Municipal de Porto Alegre
> Secretária Municipal da Saúde"
>
> My problem is what the DDEexecute command is writting a line per page, in
>my word document i have 3 pages:
>
> Page 1 "Governo do Estado do Rio Grande do Sul"
> Page 2 "Prefeitura Municipal de Porto Alegre"
> page 3 "Secretária Municipal da Saúde"
>
> Anyone Knows how do i do to put this value in only a page?
>
> Thanks for any soluction
>
>Anderson Reis Girardi
>Rua Ajax, 125 Parque dos Mayas
>Porto Alegre - RS CEP 90.170-470
>Telefone: (051) 366-4579
Michel suggestion is correct. You have more flexibility using ole automation but instead you can use mline() function to send each line of the memo field to word via ddeexecute().
Saludos,
A.G.P.
---------