<div>
<div>
Hi everybody!</div>
<div>
</div>
<div>
I have a question about word.application. I cannot make Lazarus compiled program to insert 2 rows into a word doc, first line be bold.</div>
<div>
</div>
<div>
<span style="font-family: courier new, courier, monospace">wordapp:=getactiveoleobject('Word.Application');</span></div>
<div>
<span style="font-family: courier new, courier, monospace">wordapp.selection.font.bold:=true;</span> or false, doesn't matter.</div>
<div>
</div>
<div>
Either i pick font.bold, font.size, font.name, I get an error, that points to "bold" is not a member or property, or such kind of message.</div>
<div>
What is very funny that I can read its value</div>
<div>
</div>
<div>
<span style="font-family: courier new, courier, monospace">showmessage(wordapp.selection.font.bold);</span> -1 if bold, 0 if not bold.</div>
<div>
</div>
<div>
Could anyone help me with this?</div>
<div>
</div>
<div>
Thanks in advance,</div>
<div>
Csabi</div>
</div>