Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax Error - Using Picture file (.jpg) for a signature
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00743804
Message ID:
00745171
Views:
26
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform