Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save Excel/Word OLE embed document
Message
From
18/08/1998 11:18:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/08/1998 09:24:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00127336
Message ID:
00127761
Views:
32
>Hi,
>This code which You wrote functioning when OLE Embed object is NOT editing.
>I have this problem:
>- I editing word document (OLE bound object) in modeless form (double click for edit)
>- I click in FoxPro menu "Report->SaveAs" - but OLE object is still set as
> editable.
>- When I do this, FoxPro get error:
> OLE IDispatch exception code 0 from Microsoft Word: The
> SaveAs method or property is not available because this
> document is being edited in another application...
>
>How can I close edited mode for OLE embed object which I activate with double click on it. I use these command in menu:
> goApp.MISReport.OLEReport.DoVerb(0)
> goApp.MISReport.OLEReport.Object.SaveAs("c:\test.doc",)
>but not functioning. When I use DoVerb(0) in one menu and SaveAs in other menu - this functioning. I think that command "SaveAs" is run and operation "DoVerb" is in this momen still not ending.
>
>Thanks.
Martin,
Sorry couldn't understand. When an OLEBoundcontrol loses focus edit finishes. ie: You could add this to a commandbutton to save intermeadiate edits :
*Button.click
thisform.OLBWord.object.saveas("c.\temp\"+sys(2015)+".doc")
FP report menu would be open with modify report and its saveas is for report and works.
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
Reply
Map
View

Click here to load this message in the networking platform