Page 1 of 1

Help with comate Plus and word object

Posted: Thu Apr 18, 2013 7:38 am
by loulou
This three line where not accepted by comate

Code: Select all

WordApplication\SetProperty("ActiveDocument\Wholestory")
 WordApplication\SetProperty("ActiveDocument\Font\Name =  'Arial Narrow'")
 WordApplication\SetProperty("ActiveDocument\Font\Size =  12")
Equivalent in visual basic

Code: Select all

Selection.wholestory
Selection.Font.name='Arial Narrow'
Selection.Fontsize= 12
Comate responds : Method/property not support by this object

Can someone help me to solve that's problem

Re: Help with comate Plus and word object

Posted: Thu Apr 18, 2013 11:34 am
by Kiffi

Code: Select all

WordApplication\Invoke("ActiveDocument\Wholestory")
[...]
WordApplication\SetProperty("ActiveDocument\Fontsize =  12")

Re: Help with comate Plus and word object

Posted: Thu Apr 18, 2013 3:45 pm
by loulou
Always the same error with
Word.application.invoke("ActiveDocument\Wholestory"
Method or property not supported by this object

Re: Help with comate Plus and word object

Posted: Thu Apr 18, 2013 4:09 pm
by Kiffi
please try:

Code: Select all

WordApplication\Invoke("Selection\Wholestory")
Greetings ... Kiffi

Re: Help with comate Plus and word object

Posted: Thu Apr 18, 2013 4:26 pm
by IdeasVacuum
make sure your PB/Comate syntax is perfect.

Re: Help with comate Plus and word object

Posted: Thu Apr 18, 2013 4:38 pm
by loulou
Thank's Kiffi
now that's work perfectly