Previous | Next | (P-PDF) What's Wrong with my PDF?
Topic: No Topic
Conf: (P-PDF) What's Wrong with my PDF?, Msg: 171104
From: gosp
Date: 8/11/2009 06:33 PM
If uses this form, that is recorded in file c: \ AA.pdf is empty but if I use the second form, the file that opens in the Web browser opens correctly.
Any idea why the file is empty?
FORM 1
Dim FdfAcX As New FDFACXLib.FdfApp
Dim myFdf As Object
myFdf = FdfAcX.FDFCreate()
myFdf.FDFSetValue("DOCUXML", "VAR1", False)
myFdf.FDFSetFile(DirTEMPLATES)
myFdf.FDFSaveToFile("C:\AA.pdf")
myFdf.FDFClose()
myFdf = Nothing
FdfAcX = Nothing
FORM 2
Response.Buffer = True
Response.Clear()
Response.ContentType = "application/vnd.fdf"
Response.BinaryWrite(myFdf.FDFSaveToBuf)
Response.Flush()
Response.End()
Thank you!!!