PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Variable replacement in a Word document
Variable replacement in a Word document
Iniciado por software, 08,mar. 2016 16:10 - 3 respuestas
Miembro registrado
27 mensajes
Publicado el 08,marzo 2016 - 16:10
Hi,

How can i replace variables in a Word document with Windev ?

In a word document there are variables as $NAME_CLIENT$, $ADRESSE_CLIENT$ , ...

How can i read a selected word document and how to replace the variables by database items ?

Thanks,

Eric
Publicado el 08,marzo 2016 - 20:50
Hi Eric,

it's possible to do it via OLE automation, if word or open office/libre
office are installed on the pc, and it's possible to do it with gembox
if you need it when they are not installed)

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


On 3/8/2016 10:10 AM, ERICS wrote:
Hi,

How can i replace variables in a Word document with Windev ?

In a word document there are variables as $NAME_CLIENT$,
$ADRESSE_CLIENT$ , ...

How can i read a selected word document and how to replace the variables
by database items ?

Thanks,

Eric
Miembro registrado
27 mensajes
Publicado el 09,marzo 2016 - 08:43
Fabrice,

Thank you for your info.
But, where can i find some code examples of it ?

Thanks,

Eric
Publicado el 09,marzo 2016 - 21:15
Hi Eric,

in the windev examples (search for OLE), in the windev french forum
(search for OLE, word, office, and gembox), and in my open source WXEDM
where there is some usage of gembox

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


On 3/9/2016 2:43 AM, ERICS wrote:
Fabrice,

Thank you for your info.
But, where can i find some code examples of it ?

Thanks,

Eric