PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

Your code looks like it should work in classic ASP with Acrobat 5

Are you using Acrobat 5 or 6. We have had some difficulties getting fdf's
populated with classic ASP and Acrobat 6.


-----Original Message-----
From: New User [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] asp.net page for fdf to populate .pdf form -- Why
code not working? 



PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

I've spent at least 10 hours researching ways to
implement asp.net with the FDF toolkit, and have made
some progress, with a little trouble:

My problem is that the .asp page I've created appears
as an FDF file (and now, after further tweaking,
generates ActiveX warning in browser, but clicking
okay just opens the generated FDF file in Visual
Studio), but it won't populate my .pdf form (and
doesn't even open the form).  I've been able to
accomplish this in asp, but not asp.net.  If someone
could take a moment to look at my code, I'd really
appreciate your help (I'm running out of options
here!)

 

             Sub Page_load() 

    Dim FdfAcX_App As FdfAppClass

    FdfAcX_App = new FdfAppClass() 

    Dim outputFDF As FdfDoc

    outputFDF = FdfAcX_App.FDFCreate

   
outputFDF.FDFSetFile("http://scifers.net/vettest2.pdf";)

    outputFDF.FDFSetValue("SSN", "329748648", false)

    outputFDF.FDFSetValue("NameLast", "NEWTest",
false)

    outputFDF.FDFSetValue("NameFirst", "IT WORKS",
false)

       

    '     FdfAcX_Doc.FDFSaveToFile("c:\temp\test.fdf")
-I've opted not to generate an fdf file, but only need
to populate fields in my PDF

 

    Response.ContentType = "application/vnd.fdf"

    Response.BinaryWrite (outputFDF.FDFSaveToBuf)

    ' the above weren't discussed in your article, but
they appear to be part of sending data to the .pdf
file

    outputFDF.FDFClose  

 

            End sub

 

Can anyone help?



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

Reply via email to