Vbscript convert to FWH

Vbscript convert to FWH

Postby cdmmaui » Thu Jul 03, 2008 4:49 am

Hello,

Can someone help me and convert the following from VB Script to FWH?

Thank you in advance for your help!!!


//------------------------------------------------------------------------------

Set FdfAcX = Server.CreateObject("FdfApp.FdfApp")

Set outputFDF = FdfAcX.FDFCreate

outputFDF.FDFSetValue "Date", "December 31 1999", False
outputFDF.FDFSetValue "Name", "John Clay", False
outputFDF.FDFSetValue "Address", "12 Saratoga Ave", False
outputFDF.FDFSetValue "City", "Saratoga", False
outputFDF.FDFSetValue "State", "CA", False

outputFDF.FDFSetFile "http://localhost/FDF_PDFs/generateFDF.pdf"

outputFDF.FDFClose
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: Vbscript convert to FWH

Postby Enrico Maria Giordano » Thu Jul 03, 2008 6:57 am

Try

Code: Select all  Expand view  RUN
FdfAcX = CreateObject("FdfApp.FdfApp")

outputFDF = FdfAcX:FDFCreate()
   
outputFDF:FDFSetValue( "Date", "December 31 1999", .F. )
outputFDF:FDFSetValue( "Name", "John Clay", .F. )
outputFDF:FDFSetValue( "Address", "12 Saratoga Ave", .F. )
outputFDF:FDFSetValue( "City", "Saratoga", .F. )
outputFDF:FDFSetValue( "State", "CA", .F. )

outputFDF:FDFSetFile( "http://localhost/FDF_PDFs/generateFDF.pdf" )

outputFDF:FDFClose()


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby cdmmaui » Thu Jul 03, 2008 1:43 pm

Thank you Enrico
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Postby cdmmaui » Thu Jul 03, 2008 5:17 pm

Hi Enrico,

The process seems to work, but the PDF is not being created, any ideas?

Thanks,
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Postby Enrico Maria Giordano » Fri Jul 04, 2008 7:22 am

Try specifying a real path instead of an URL.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Maurizio and 95 guests