Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with OLE bound control - question
Message
From
01/06/1999 12:30:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00224950
Message ID:
00224984
Views:
21
>Hello...
>
> I am newly experimenting with embedding a Word document in to a general field, and I had a few questions about using this. If anyone has an answer to either of these questions, I would greatly appreciate the feedback.
>
> 1)I am changing my old memo fields to general fields with Word embedded, and I was wondering if there was a way to transfer the data from the memo field to the general field. Is this even possible since you are actually accessing a word document?
>
> 2)Any suggestions for how to specify when a user enters a BLANK general field, once opened, that they cannot change the OLE bound control, i.e. accidentally change it to a wordperfect document? Any way to set it standard even if nothing is in the field yet?
>
> Thanks in advance.
>
> Dena Laney
Dena,
This is OLE wor(l)d :) Yes possible.
1) Scan..endscan writing out to a file (they're binary memos in word format already. Right ?) and appending from that file to general field.
set safety off
scan
copy memo oldWordMemo to file temp.doc
append general newGeneral from temp.doc
endscan
2) If you want all them to be word docs then create an empty doc and use that as a template. ie: change add-edit code :
dodefault()
if this.parent.editmode and empty(newGeneral)
 append general newGeneral from myEmptyTemplate.doc
endif
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