Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax Error - Using Picture file (.jpg) for a signature
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00743804
Message ID:
00745171
Vues:
27
Steve, man, you are the greatest!

That worked beautifully. I don't know why I didn't think of this.

Here's my code: (This code is contained in the Form)

IF FILE(ALLTRIM(tmpPOReport.Buyer)+'.JPG')
*COPY FILE (ALLTRIM(POHEADER.BUYER)+'.JPG') TO ('SIGNATUR.JPG')
lcBuyer = ALLTRIM(tmpPOReport.Buyer)
*COPY FILE ("C:\PONEW\"+lcBuyer+'.JPG') TO ("C:\PONEW\SIGNATUR.JPG")
lcTempFileNameForJPEGSignature = SUBSTR(SYS(2015), 3, 10) + ".JPG"
oApp.PathToSignatureFile = lcTempFileNameForJPEGSignature
COPY FILE ("C:\PONEW\"+lcBuyer+'.JPG') TO (lcTempFileNameForJPEGSignature)
ELSE
*COPY FILE ('BLANK.JPG') TO ('SIGNATUR.JPG')
COPY FILE ("BLANK.JPG") TO ("C:\PONEW\SIGNATUR.JPG")
ENDIF

Here's what is in the picture file property of the report form:
(oApp.PathToSignatureFile)

Thanks for your help and Cathy Pountney's.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform