>Fred--
>
>>
>>That's because GETOBJECT uses whatever is currently running. Version makes no difference. You could check the version via automation once you've gotten the object reference.
>>
oX = GETOBJECT(,"Excel.Application")
>>?oX.Version
>
>Thanks.
>
>Is there some easy way for me to detect that the version of Excel that fired up is a Trial version. The trial version of Excel 2007 has Save As disabled. I can TRY/CATCH that to detect that I got the Trial by mistake. That is a little to indirect for my taste.
>
>More importantly, if I print using Automation in Word, everything works the first time. The 2nd time my app is run my print image is garbage. My VFP app is called from a FPW 2.5 app. Every time my user prints, the VFP app EXE is started up. Regardless, my VFP app does
>
> oDocument.Application.quit
> RELEASE oDocument
>
>after printing.
>
>When I reboot Vista, the first print is good again. Somehow there is some Word stuff hanging out in memory. This is running on 15 XP systems without issue.
>
>Tim
Don't have Vista on any of our computers, and not likely to have any time soon. (still have 100's of boxes running W98!)
Even on our servers, we'll probably be on W2K3 for the foreseeable future. We just got rid of our last NT4 server earlier this year.
Maybe there is a property that you can check on the oX object that tells you it's a trial version or not. Never had to deal with anything like that.