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:52:59
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
02/10/2003 05:27:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00834147
Message ID:
00834154
Vues:
30
Try:
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)
I assume that lpFileName is a long pointer to the memory adress of file name string so try to pass it by reference:
FileName = 'test2.pdf'
pdfId = verycreate(FileName)
?pdfId
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform