Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word automation question
Message
From
03/04/2014 18:04:44
 
 
To
03/04/2014 17:44:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01598000
Message ID:
01598009
Views:
57
OK, mark onw up to my paranoia.

Thanks


>I found a bunch of old code where we did something, and I am wondering were we insane or is this really OK.
>
>1. We get an instance of Word into say oWord
>2. We manipulate the document as we wish.
>3. We make word visible'
>4. We tell the user now you can save, print, do what you want.
>5. THEN WE RELEASE OWORD!
>
>I guess since word is open on the desktop somebody figured it was OK to go ahead and release oWord I said, hey, you cannot do that reliably, and they said why not, and I said uh uh uh uh . . . . . I dunno.
>
>Is this bad, and if so why, or am I just an overcautious geek?

>
>What did you expect to happen? All you were doing was releasing VFP's reference to Word. If you had issued
>
>
>oWord.Quit()
>
>
>Now, that would be a different story :)
Previous
Reply
Map
View

Click here to load this message in the networking platform