Vbscript convert to FWH

Post Reply
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

Vbscript convert to FWH

Post 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
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Vbscript convert to FWH

Post 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
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

Post by cdmmaui »

Thank you Enrico
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
Posts: 653
Joined: Fri Oct 28, 2005 9:53 am
Location: The Woodlands - Dallas - Scottsdale - London
Contact:

Post by cdmmaui »

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
Post Reply