Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Issue with printing form data

Avatar

Former Community Member
We created a form with Designer 7 and are submitting with to a database and then back to to the same PDF File so users can print it.



The problem is that after you submit the data, when you go to print out the data, there is no data there, although there is visible data to print.



Is this s bug? Is thre something wrong with our code?



A demo of the form is here:

http://webdev2.tmcc.edu/Webdev/Projects/Presentations/WebDev2006/Demo/HighEdWebDevForm.pdf



The ASP code that we use to process this is here:



Response.ContentType = "application/vnd.adobe.xfdf"

Response.Write "%FDF-1.2" & chr(10) & chr(13)

Response.Write "%âaIO" & chr(10) & chr(13)

Response.Write "1 0 obj" & chr(10) & chr(13)

Response.Write "<< /FDF" & chr(10) & chr(13)

Response.Write "<< /F(http://webdev2.tmcc.edu/Webdev/Projects/Presentations/WebDev2006/Demo/HighEdWebDevForm.pdf) /Status (Submission Success: Please Print a copy!)"

Response.Write " /Fields" & chr(10) & chr(13)

Response.write "[" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ReqFirstName[0]) /V(" & ReqFirstName & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ReqLastName[0]) /V(" & ReqLastName & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ReqTitle[0]) /V(" & ReqTitle & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ReqEmail[0]) /V(" & ReqEmail & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ReqTelephone[0]) /V(" & ReqTelephone & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ReqDepartment[0]) /V(" & ReqDepartment & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ProjectTitle[0]) /V(" & ProjectTitle & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].DeptWebSiteURI[0]) /V(" & DeptWebSiteURI & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].RequestorInformation[0].ProjectDetails[0]) /V(" & ProjectDetails & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].OtherContactInfo[0].ConFirstName[0]) /V(" & ConFirstName & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].OtherContactInfo[0].ConLastName[0]) /V(" & ConLastName & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].OtherContactInfo[0].ConEmail[0]) /V(" & ConEmail & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].OtherContactInfo[0].ConTitle[0]) /V(" & ConTitle & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].ProjectETA[0]) /V(" & ProjectETA & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].ContactRequestor[0]) /V(" & ContactRequestor & ") >>" & chr(10) & chr(13)

Response.Write "<< /T(form1[0].BodySubForm[0].AdditionalInformation[0].ContactOther[0]) /V(" & ContactOther & ") >>" & chr(10) & chr(13)

Response.write "]" & chr(10) & chr(13)

Response.write ">>" & chr(10) & chr(13)

Response.write ">>" & chr(10) & chr(13)

Response.write "endobj" & chr(10) & chr(13)

Response.write "trailer" & chr(10) & chr(13)

Response.write "<</Root 1 0 R>>" & chr(10) & chr(13)

Response.write "%%EOF" & chr(10) & chr(13)



This code works fine with any forms that were created in Acrobat Pro, but for some reason this bug occurs only in Designer built forms. Hope some one has a solution.
1 Reply

Avatar

Former Community Member
You are sending XFDF data back to your form. XFDF is specifically for forms designed in Acrobat

(aka Acro Forms) and not forms built in Designer.



--

Justin Klei

Cardinal Solutions Group

www.cardinalsolutions.com