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