Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any chance to run this great pdf-generator within VFP?
Message
De
02/10/2003 07:13:02
 
 
À
02/10/2003 06:43:50
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00834147
Message ID:
00834162
Vues:
34
>Can you post the code that doesn't work?

Sure. The code below will deliver some kind of handle, valued
1,2,3 for each file created (the file is effectively created
as an empty pdf file).

But it is then both impossible to add stuff to the pdf "in creation",
unlock or even drop the resource created (mytest.pdf).

Error code
DECLARE LONG VeryCreate IN "verywrite.dll" STRING @ lpFileName
DECLARE VeryClose IN "verywrite.dll" (LONG VERY_ID)
DECLARE LONG VeryAddImage IN "verywrite.dll" (LONG VERY_ID ,STRING @ lpFileName)

PUBLIC iVeryHandle
ERASE mytest.pdf

** below OK
iVeryHandle = VeryCreate("mytest.pdf") 
? "My handle on the stuff:",iVeryHandle 

** below NOT workable
? VeryAddImage(iVeryHandle,"mytest.tif")
? VeryClose(iVeryHandle)

** only way out to unlock the empty pdf resource
** QUIT or CLEAR DLLS
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform