This sounds very much like the problem I sent a message about earlier (copied below, sorry if it's long) - if you get an answer could you pass it on to me please (I got one reply suggesting a problem with creating forms with the wizard & then manually modifying - changing this din't solve the problem). For one reason or another VFP appears to be ignore the set OLEClass & using Windows Packager as the OLE server.
I'm trying to avoid the common response to VFP/OLE/ActiveX problems on most newsgroups etc., that VFP should be uninstalled & then re-installed. I think I'm doing something stupid or some setup option isn't quite right.
With thanks
Paul
I am having problems using OLE and ActiveX to display JPEG files, though the problem seems to be with any type of file. I have been following the example in the help & documentation from the original CD.
I have used the Form Wizard to create a form, on which I want to display various images which cannot be bound to a General field in a table. If have the following class defined in a library file :
DEFINE CLASS oleJPGObj AS OLEControl
OleClass="MSPhotoEd.3"
DocumentFile="Kes.jpg"
ENDDEFINE
If I try to create an object using :
MyForm.AddObject( "oleobj1", "oleJPGObj" )
then the Add OLE Container dialogue is displayed as if I were using the Form Wizard to add the object.
If I add the object using :
MyForm.AddObject( "oleobj1", "oleJPGObj", "MSPhotoEd.3" )
then an icon is displayed showing the correct filename, double clicking launches MSPhoto Editor.
I have also tried to use the PicClip ActiveX component supplied, replacing "MSPhotEd.3" with "PicClip.PictureClip.1" & get exactly the same results, dialog displayed with 1st method & icon/launch of MSPhoto Editor with the 2nd.
Following the second method of adding the object, I have displayed the OLEClass & this is reported as "Package" in both instances rather than "MSPhotoEd.3" or "PicClip.PictureClip.1". If I use the form wizard to add objects of either type, everything works fine & the OLEClass is reported as expected.
Can anyone tell me what I am doing wrong (it's probably totally obvious). Why is packager being used rather than the specified OLE/ActiveX component ? The problem is similar if I use the "Excel.Sheet" example from the help pages. (Kes.jpg does exist & the components appear properly registered, no error messages are displayed)
>When I use the append generel command to put a bmp image into a general field of a record the image appears as an icon with the file name underneath as if it is an attachment to an email. I thought I had done this in the past and the image appeared as it would in paintbrush. Am I doing something stupid? I want the image to appear as a graphic image so I can print it on a report.
>
>TIA,
>David
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement