I transfer a cell of a Calc-file to a document (writer file) using DDE.
This works perfect.
Now I try to use the DDE field in a condition to create a conditional text.
The DDE field contains a figure. The text shall be different depending on the value of the figure ( >=0).
This seems to be simple but I cannot find out how to do it.
Please help.
Writer: how to use a DDE field in a condition
-
- Posts: 5
- Joined: Tue Dec 03, 2019 5:44 pm
Writer: how to use a DDE field in a condition
OpenOffice 4.1.7
Windows x86
Windows x86
Re: Writer: how to use a DDE field in a condition
How you did it? By embedding a Calc file? Or some copy-paste?I transfer a cell of a Calc-file to a document (writer file) using DDE.
Please upload two ODF type sample files here (the .ods one and the .odt one).
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: Writer: how to use a DDE field in a condition
Do all the calculation in Calc and link the result to your DDE field.
=IF(X1>=0;"this text";"other text")
or
=IF(X1>=0;Y1;Z1)
=IF(X1>=0;"this text";"other text")
or
=IF(X1>=0;Y1;Z1)
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
- Posts: 5
- Joined: Tue Dec 03, 2019 5:44 pm
Re: Writer: how to use a DDE field in a condition
Zizi64 wrote:How you did it? By embedding a Calc file? Or some copy-paste?I transfer a cell of a Calc-file to a document (writer file) using DDE.
Please upload two ODF type sample files here (the .ods one and the .odt one).
I used the menu of the document file:
Insert > Fields > Other > use Tab Variables > Select Type DDE-Field.
Insert a Name for the DDE-Field. Insert the DDE Statement e.g. soffice D:\folder\file.ods name_of_cell_in_calc_file. Use Format DDE automatic.
(The cell in the spread sheet is a named cell.)
OpenOffice 4.1.7
Windows x86
Windows x86