Hi Will,
-Locale id thing is for us the foreign language users :) It might not be needed with MSGraph at all but I got my lesson from other Office apps and use here too (I don't know if they'll roll a Turkish version in future:). Here problem is you might say :
oWord.Documents.Open('some.doc')
and it would come up with 'Unknown command' or similar error in a localized version (ie: in Turkish version it's -I think < g > - oWord.Dokuman.Ac() )
It's kind of saying I'll talk to you in English :)
-For error you're getting it's related with Class name there. You might not have that version at all. Try changing it to something like 'MSGraph.Chart'
-In John's question he needed a stacked + percent stacked graph at the same time. To be able to do it I first calculate maximum overall total for a row which would represent 100%. During xtabbing I insert first regular values record (stacked part), then add another with values representing % stacked.
ie:
MaxTotal=1000.
Particular row values : 5, 12, 8 = Tot 25 - 100%
A row would have : 5,12,8
And another for % : 200, 480, 320 && Values muliplied by MaxTotal/Tot
IOW each regular row has an additional row which sum(values)=MaxTotal
Cetin
>Cetin,
>
>I am interested in what this does (mainly setting LocaleId to english bit)
>
>I have tried cutting and pasting this code but I get an error
>"Only insertable objects are allowed in general fields"
>
>Help is about as much use as a wet kipper
>Any ideas?
>
>Will