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 05:27:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Any chance to run this great pdf-generator within VFP?
Divers
Thread ID:
00834147
Message ID:
00834147
Vues:
150
Hi all,

I am currently investigating a great pdf resource from www.verypdf.com, a tool that basically builds your pdf from an arbitrary list of graphical resources.

The tool has a lot to offer despite a simplistic API including support
for a bunch of file formats (multipage tif, jpeg ...) and
pdf 128 encryption.

But i have been unable to run the code from vfp.

The VB demo (see code below) works fine within VB6.

VFP unsuccessful 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)

** returns an error message
** TOO MANY ARGUMENTS
?  verycreate("test2.pdf")
VB successful code (from VB6)
Private Declare Function VeryCreate Lib "verywrite.dll" 
(ByVal lpFileName As String) As Long
Private Declare Sub VeryClose Lib "verywrite.dll" (ByVal id As Long)
Private Declare Function VeryAddImage Lib "verywrite.dll" 
(ByVal id As Long, ByVal lpFileName As String) As Long

Private Sub Command1_Click()
Dim filename As String
Dim id As Long

filename = "create.pdf"
id = VeryCreate(filename)
filename = "multipage.tif"
ret = VeryAddImage(id,filename)
...
Any hint or trick is welcome. If VB can, then VFP should...

Francis
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform