Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole Insert - VFP 6 SP5
Message
De
23/09/2004 03:06:02
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Ole Insert - VFP 6 SP5
Divers
Thread ID:
00945276
Message ID:
00945276
Vues:
62
I am trying to make a minor correction to code I wrote two years ago. I do not do much programming anymore and I have forgotten much so please be kind :)

That being said, I am trying to insert a small graphic into a general field and then print that graphic on an invoice. I had this working previously and I have no idea what is causing the process to fail now. Perhaps this code was written and tested prior to SP5 or prior to SP2 for the WinXP machine I am 'developing' the program on?

I am using:

what_logo = GETPICT('BMP;JPG;GIF', 'Find Your Logo')
IF LEN(ALLTRIM(what_logo))>0
APPEND GENERAL combobox_values.invoice_logo FROM (what_logo)
ENDIF
THISFORM.REFRESH


The problem is that the graphic is inserted in the general field as a thumbnail with the name of the file underneith it. If I go into the table where this is stored and double click on the GEN field, this thumbnail appears, then if I double click on the thumbnail, the full graphic appears. The form where the graphic is set, previews the graphic using an OLEBoundControl and the invoice prints the graphic via an OLEBoundControl. Unfortunately both the preview on the form and the printed invoice only show the thumbnail (with the name under it).

I have tried LINKing, specifing the CLASS and several other options but after 90 minutes I just can't get this to work.

It definately used to work because I use the software for my own invoicing and it shows and prints the full graphic... no thumbnail.

Any assistance would be appreciated.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform