Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting an OLE Word Document from a General Field
Message
From
07/05/1998 13:01:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00081929
Message ID:
00097747
Views:
40
>>
>>use wtest  && Fields oType c, oSelf g
>>locate for oType = "Word doc"
>>oform = createobject("form")
>>with oForm
>> .addobject("olbW","Oleboundcontrol")
>> .height = 420
>> .width = 620
>> .olbW.top = 0
>> .olbW.left = 400
>> .olbW.height = 400
>> .olbW.width = 600
>> .olbW.controlsource = "wtest.oSelf"    && Embedded word doc
>> .olbW.object.saveas("c:\temp\acopy.doc",)
>> .release
>>endwith
>>
>
>Hi Cetin,
>
>I can't make the SaveAs work. I only get an OLE error "Unknown name". Do you know why this is?
>
>Klas Nygren
Klas,
Have you used it as is ? I mean including "object" before saveas. It's supported in word95 and word97.
Cetin
Ç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
Next
Reply
Map
View

Click here to load this message in the networking platform