Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save PDF file in General Field to c:\ drive
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01158204
Message ID:
01158261
Vues:
24
FYI: With VFP9's CAST function, you don't have to create the temp table anymore:
** Use CAST instead of temp file
lcStr = CAST(custfile AS Blob)
*  COPY TO temp FIELDS custfile NEXT 1
*  lcPdfFileName = "cust_hist.pdf"
*  lcStr = FILETOSTR("temp.fpt")
lnStartPos = AT( "%PDF", lcStr)
lnEndPos = RAT( "%%EOF", lcStr) + 5
lcPdfStr = SUBS(lcStr, lnStartPos, lnEndPos - lnStartPos + 1 )
STRTOFILE(lcPdfStr, lcPdfFileName)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform