|  
..:: Support » Forums ::..
Subject: EXAMPLE: Filling an AcroForm

You are not authorized to post a reply.   
Prev Next
Author Messages
charliesolomonUser is Offline
Nuke Expert
Nuke Expert
Posts:50


08/29/2007 10:25 AM Alert 
The attached zip file contains a PDF file created with Adobe Acrobat Professional v8. It is a screen capture of our Pdf Reports products page from this site, which I then added one form field to (this requires the "Professional" version of Acrobat, unfortunately... there are other PDF creation tools out there but I have not verified them to work with Pdf Reports.)

I labeled the form field "Label1" in my PDF file. The zip file also contains an SQL script that will create the stored procedure Pdf Reports calls to fill your form. This example fills the form with UserName's from your DNN site (one per page, limited to the last 10 registered users.)

To set up the report, add a new report to your Pdf Reports module (which you have already installed on a page of your site). In the report settings page, give you report a name, specify the correct stored procedure name to call, and leave the report type as "PDF". Then click "Save".

Then, in the "Files" section of the report settings, upload the attached PDF form file ("Pdf Reports Form.pdf"), then select it as the "AcroForm" file from that dropdown.

Click "Save and Exit" and you are ready to test it out.

(Note: requires Pdf Reports v02.00.08 or later)

Attachment: Pdf Reports Form.zip


Charlie Solomon
Beldin Technologies
mikerennickUser is Offline
Regular Poster
Regular Poster
Posts:16

07/21/2008 6:46 AM Alert 
If I create an AcroForm with the following form fields (in this order):

FirstName, Lastname, FirstName, StreetAddress, FirstName

then would my final sql query look like this:

SELECT FirstName, Lastname, FirstName, StreetAddress, FirstName FROM Table

In other words, do I need to select fields in my query in the exact order and quantity to the form fields used int he AcroForm? Or, can I map the fields from the query by using the same Name as the form field used on the acroform. If that were true, then my query might look like this:

SELECT FirstName, Lastname, StreetAddress FROM Table

where the value of FirstName will map to the AcroForm form field called "FirstName"
charliesolomonUser is Offline
Nuke Expert
Nuke Expert
Posts:50


07/22/2008 1:23 AM Alert 
Hi Mike,

Order does not matter. Quantity does not matter. Uniqueness does matter (I think... you may want to test this.) So listing "FirstName" twice may cause problems. Instead, use an alias for one of them, and rename the form field:

select FirstName as [FirstName], FirstName as [AnotherFirstNameField]
from MyTable


Charlie Solomon
Beldin Technologies
You are not authorized to post a reply.
Forums > DotNetNuke Modules > Pdf Reports > EXAMPLE: Filling an AcroForm



ActiveForums 3.6
 Search
RE: EXAMPLE: Avery 5161 labels for your DNN users by charliesolomon
Let me know if this is still an issue... I've given you a membership on this site, with access to th...
RE: Error installing in 4.9 by charliesolomon
I added you as a member on this site, please download the latest version from the Downloads page... ...
RE: Error installing in 4.9 by lafonj
Is the version on Snowcovered the latest version? I just purchased it this weekend and haven't been...
RE: EXAMPLE: Avery 5161 labels for your DNN users by lafonj
Hate to dig up an old thread but here it goes. I ran the example and am now getting this error when...
RE: Error installing in 4.9 by charliesolomon
Hi Doug,Sorry for the delayed reply here... have you downloaded the latest PdfReports zip from this ...
Error installing in 4.9 by ibbly
I have a copy of your software from way back. It is great, but I want to use on my new portal, DN...
RE: EXAMPLE: Filling an AcroForm by charliesolomon
Hi Mike,Order does not matter. Quantity does not matter. Uniqueness does matter (I think... you ma...
RE: EXAMPLE: Filling an AcroForm by mikerennick
If I create an AcroForm with the following form fields (in this order):FirstName, Lastname, FirstNam...
RE: Need to Know what I don't Know by charliesolomon
Unfortunately yes, you're wrong. The fontstyle tag is only read per line... if you put a [br] tag i...
RE: Need to Know what I don't Know by mikerennick
I am selecting some text like this (sub []) in my SP: SELECT '[fontstyle=BOLD]Some text[fontstyle...
Copyright 2006 Beldin Technologies  | Terms of Use | Privacy Statement