Page 1 of 1

Vbscript convert to FWH

Posted: Thu Jul 03, 2008 4:49 am
by cdmmaui
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

Re: Vbscript convert to FWH

Posted: Thu Jul 03, 2008 6:57 am
by Enrico Maria Giordano
Try

Code: Select all

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

Posted: Thu Jul 03, 2008 1:43 pm
by cdmmaui
Thank you Enrico

Posted: Thu Jul 03, 2008 5:17 pm
by cdmmaui
Hi Enrico,

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

Thanks,

Posted: Fri Jul 04, 2008 7:22 am
by Enrico Maria Giordano
Try specifying a real path instead of an URL.

EMG