Help with comate Plus and word object

Just starting out? Need help? Post your questions and find answers here.
loulou
User
User
Posts: 38
Joined: Tue Dec 08, 2009 7:42 am

Help with comate Plus and word object

Post 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
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Help with comate Plus and word object

Post by Kiffi »

Code: Select all

WordApplication\Invoke("ActiveDocument\Wholestory")
[...]
WordApplication\SetProperty("ActiveDocument\Fontsize =  12")
Hygge
loulou
User
User
Posts: 38
Joined: Tue Dec 08, 2009 7:42 am

Re: Help with comate Plus and word object

Post by loulou »

Always the same error with
Word.application.invoke("ActiveDocument\Wholestory"
Method or property not supported by this object
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Help with comate Plus and word object

Post by Kiffi »

please try:

Code: Select all

WordApplication\Invoke("Selection\Wholestory")
Greetings ... Kiffi
Hygge
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Help with comate Plus and word object

Post by IdeasVacuum »

make sure your PB/Comate syntax is perfect.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
loulou
User
User
Posts: 38
Joined: Tue Dec 08, 2009 7:42 am

Re: Help with comate Plus and word object

Post by loulou »

Thank's Kiffi
now that's work perfectly
Post Reply