>I've just finished to develop an application who works a lot with Microsoft Word. So i was thinking i was yet a good developper using automation with Word. But...
>In my computer everything works ok, even in design mode, even in run-time mode.
>
>Then the time for testing has arrived:
>
>This code works in every computer i've tested in design mode, But in run-time mode only works in my main computer
>
>ooo = createobject("word.application") && works fine
>ooo.documents.add() && works fine
>ooo.activedocument.saveas("myfilepath&name") && crash in all computers but mine.
>
>I've installed VFP in these computers and in design mode everything works fine.
>
>Some ideas?. I can't install the application.
>Carlos.
I ran into something the other day that may apply. Different command, but I was doing something with Macro sub. It worked fine in dev and when running exe fro inside fox but would not work from outside fox. I don't know why and have not had the time to really find out, but I fixed the problem by building the complete command into a variable and then issued the macro sub.
In your case, try myvar="ooo.activedocument.saveas("+myfilepath+name+")"
&myvar.
This may not apply but it fixed my problem.
HTH
Jeff
It's Time to get a gun.
That's what I've been thinkin.
I think I can afford one, If I do a little less Drinkin.www.TrueGeeks.com