Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening word document embedded in a general field
Message
From
06/01/2003 05:26:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00737898
Message ID:
00738331
Views:
28
This message has been marked as the solution to the initial question of the thread.
I wasn't aware it does with this way. I changed init code to :
  Procedure Init
 	LOCAL oWord
  	oWord = CREATEOBJECT("Word.Application")
  	oWord.Documents.Add
    With This
      Select myWordDocs
      Scan
        .Refresh()
        .myWord.Object.Content.Copy
        oWord.ActiveDocument.Content.Paste
        oWord.ActiveDocument.SaveAs(Sys(5)+Curdir()+;
         'DOCUMENTS_'+Transform(Recno('myWordDocs'))+'.doc')
      Endscan
    Endwith
    oWord.ActiveDocument.Saved = .t.
    oWord.Quit
  Endproc
Sounds to be faster and doesn't leave open winword processes.
Cetin

>Dear Cetin:
>
>Thank you very much for your valuable help. Your answer was on the mark. I am sorry that I have not responded earlier to your feedback, because this task is still in progress. When I am done I will provide you with the code that I used which is largely based on your code.
>
>In the meantime I am having a particular difficulty in clearing the “windord.exe” from memory. I have tried numerous methods to no avail such as.
>
>Release all like o*
>OForm=null
>
>Any ideas?
>
>By the way I am not Turkish. All my old relatives spoke Turkish in Lebanon and they still speak about the Turkish era.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform