Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Bound Purgatory
Message
De
01/11/2004 09:51:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/11/2004 09:32:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00956524
Message ID:
00956531
Vues:
8
>This is a first time post for me, so as a newbie be kind.
>
>Ok, here is my issue I'm working with Max Frame and have developed a form with the standard save, cancel, previous, next, add, delete, and ok buttons. I've also used an OLE bound control linked to a general field in a table. On the add and edit function I append general as class word.doc and refresh the ole control so that I can use word as an editor in the control to modify text and cut and past images.
>
>My problem is that when I click on the save or cancel buttons I have to do so twice. Clicking Once appears to take the focus away from the Ole object "it greys out and you cannot edit anymore"(but doesn't really because code in the Lostfocus doesn't run)"by the way the same behavior occures when clicking anywhere on the form once as well" and the second time to actually get the code in the save or cancel buttons to run. It is not a very smooth operation and leaves the user hanging and guessing as to whether the save or cancel actually has performed its desired operation.
>
>The kicker here is that I can get this form to work as desired with one click to the buttons in development. But when I create the EXE in run time it functions as described above.
>
>Does anyone have some hints, suggestions, or solutions. "Other than to cut my fingers off now doing so will be less suffering than trying to get fox pro to play well with others."
>
>
>Thanks in advance.

-FWIW do not use a general field. If you have to keep file in table use a memo binary field instead.
-Keeping it external -just fullpath in VFP- (or internal as a memo binary copied on to disk temporarily for editing) use a web browser control to show it on form (if you must show on form) but do not enable editing directly on form.
-Have a button to edit it that creates word.application object. Edit in word's own window.
-Assuming it's VFP7 and later you could use eventhandler to control save and get edited version into table (this part would be no problem if it was external).

IMHO having it in general field is asking for trouble and trying to do in place editing is another.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform