>>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
I used the following code in a form:
WITH THISFORM
.addobject("olbW","Oleboundcontrol")
.olbW.top = 0
.olbW.left = 400
.olbW.height = 400
.olbW.width = 600
.olbW.controlsource = "Document.ole_object" && Embedded word doc
.olbW.object.saveas("c:\temp\acopy.doc",)
ENDWITH
The error message was in Swedish, but translated it would be "Unknown
name" with the "saveas" command.
Klas Nygren
(using VFP 3.0 for Win & Mac)