Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any chance to run this great pdf-generator within VFP?
Message
From
02/10/2003 07:13:02
 
 
To
02/10/2003 06:43:50
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00834147
Message ID:
00834162
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform