Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any chance to run this great pdf-generator within VFP?
Message
From
04/10/2003 09:21:10
 
 
To
02/10/2003 05:27:13
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00834147
Message ID:
00835092
Views:
21
Hi Francois,

when passing filenames to com servers from VFP, it is always necessary to have the filename fully pathed: have you tried that?

Hank

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform