Linking pdf form to an access database
Hi. Fairly new user here. I was wondering if anyone tell me how to get a pdf form to deposit the entered data (from the form fields) into an existing access database. Both the forms and the db exist on the same server. What kind of link do i require? Please explain.
Thanks so much
oh, acrobat 7 and windows xp
You will need Acrobat Professional or LiveCycle Designer. With Acrobat Professional you create your forms with the Form Tool and write JavaScipt to establish the ADBC, Adobe Data Base Connection, and pass SQL Execute parameters. For LiveCycle Designer forms you create a data connection and then write FormCalc or JavaScript to pass SQL Execute parameters.
This topic is far too much to put in one post.
In Acrobat and LiveCycle Designer development centers there are examples.
Similar Messages
-
Submit pdf form data to sql database
Where I can find detailed information on the process of sending data from pdf form stored on the website to the sql database stored on web server ?? Where I can find some samples I could use to build my form and related script(s).
Thanks for advice.
TonyHi Paul,
Thank you very much for your quick response. I can not retrieve your
attachments, so please send them by email. Thank you.
What does it mean that DSN has to be set up on each machine which will run
the form ??? Does it mean for each person who will use the form ?? or
rather once on the server where the form is hosted ??? It will be a bit
difficult to use if it will have to be installed on each user computers as
some users may not be happy to do it. If this is the case do you have any
solution you would recommend which will collect the data from the form
without asking users to do anything special on their computers ????
Regards,
Tony Pluta
Graphics Designer
Broadmeadow Road
Broadmeadow NSW 2292
Australia
Direct: +61 2 9492 1277
Facsimile: +61 2 9462 1383
Mobile: +61 403 399 167
[email protected]
www.unitedgroupltd.com
pguerett <[email protected]>
22/04/2009 10:31 PM
Please respond to
[email protected]
To
Tony Pluta <[email protected]>
cc
Subject
submit pdf form data to sql database
If you want the form to contact the DB directly you will have to set up a
DSN on each of the machines that will run the form. Note that this wil
only work on Windows machines. Also the form must be launched for the
script to run (you mentioned the PDF was stored on the web server). I have
some samples that show how to deal with a DB but the attachments do not
seem to be working correctly on the forum yet. If you cannot retrieve them
post your email and I will email them to you directly.
Paul -
Can you link a pdf form to a live database (access) (act)
Can Designer create a form that can access a database live to get data and then relay the filled in information back to the database ie
job number xxxxx (from database) Client xxxxxxx (from database) time on job xxxxx (input on form and uploaded back)
then upload this back to live databaseDepends on the database and the OS. Acrobat can use an OLE/DB connection through Windows to connect to the DB and perform those operations. We normally do not recommend doing itthat way beacuse you woudl have to configure a DSN on each client machine that will need to connect ot the DB (this becomes a maintenance issue in a large envirnment - if there is a small number of users this is less of an issue). Dependinng on the DB you may have to laod an ODBC client driver on each machine as well. Bigger installation will centralize this function on a server and have the form submit to that place for these operations.
Database connectivity is a standard feature in Acrobat but if you are using Reader it is not supported by default. You can enable the functionality by Reader Extending the file using LiveCycle Reader Extensions Server.
Paul -
I am trying to create PDF forms that will be filled out by multiple members of an organization. I would like them to be submitted electronically and then populate a database so that the data does not need to be reentered into a database.
I generally use Microsoft access but certainly know how to use comma separated values (CSV) or Microsoft Excel.
I currently utilize Acrobat Pro X.Thanks for the info obviously I will need to watch the videos/tutorials on distributing and tracking documents.
John W. Hellstein D.D.S., M.S.
University of Iowa, Oral Pathology
356 DSB South
Iowa City, IA 52246
Ph 319-335-9656
Description: QR_Droid_73041 3 -
How to connect a PDF form to SQL server database through web service?
Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice.Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice. -
How to populate Adobe LiveCycle Designer generated PDF Forms with data from Database in Windows app
Hi
I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
How this can be achieved?
I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
Thanks in advance.
SambhajiPlease ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br /> protected void Page_Load(object sender, EventArgs e)<br /> {<br /> Response.ContentType = "application/vnd.adobe.xdp+xml";<br /> StringBuilder responseString = new StringBuilder();<br /> responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br /> responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br /> responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br /> responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br /> responseString.Append("<xfa:data>");<br /><br /> responseString.Append("<form1>");<br /> responseString.Append("<TextField1>Homer</TextField1>");<br /> responseString.Append("<TextField2>Simpson</TextField2>");<br /> responseString.Append("<field name ='DropDownList1'>");<br /> responseString.Append("<items save='1'>");<br /> responseString.Append("<text>1</text>");<br /> responseString.Append("<text>2</text>");<br /> responseString.Append("<text>3</text>");<br /> responseString.Append("</items>");<br /> responseString.Append("</field>");<br /><br /> responseString.Append("</form1>");<br /><br /> responseString.Append("</xfa:data>");<br /> responseString.Append("</xfa:datasets>");<br /> responseString.Append("<pdf href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br /> responseString.Append("</xdp:xdp>");<br /><br /> Response.Write(responseString);<br /> Response.Flush();<br /> Response.End();<br /> }<br />}
-
Create separate PDF files from MS Access Database report field
In the development or update of pipe specifications the valve specifications (database records) that are associated with the piping specification are updated or corrected. These revised valve specifications are then exported as a group through the Access Report Print to PDF file with the piping specification name for the file name. Each separate valve specification within this single file needs to have its own PDF Valve spec file name so that each valve spec can be attached to project engineering documents or for purchasing. All of the valves are coded in the in the database and projects with this general description, V-?????? with each question mark representing a descriptive part of the valve. MS Access database has this V-?????? field name for every valve record in this large database. The current practice is extract from the single PDF file page thumbnails and rename every extracted file. With over 1000 valve records being updated, the task is time consuming.
These are the settings.
-
We have incoming data that we need to insert into a PDF form then save an individual PDF file for each record from the database table for our Image system. Data is coming from an iSeries file and I can Manually perform all the steps within the process, but this needs to be something that we can run from a scheduled job and should be a totally hands off process. The form is in Adobe Acrobat and I've been trying some of the JavaScript pieces, but can't seem to get everything to run automatically. I'm new to PC programming and can use any suggestions on how to handle this process.
You might want to post this to the Acrobat SDK forum here. For it to work with Acrobat, it cannot be a completely automated process, however, due to licensing (and technical) restrictions. There are a number of third-party APIs that might help. If you post again, include what format the data is in (FDF, XFDF, XML, XDP) and what programming languages you can work in.
-
Is it possible to link two form fields together in a PDF form? I am creating a PDF form from an existing printed form, and some of the questions originally had two lines available for response. I want the user to still have two lines to use, but without having to tab between them. Can Acrobat 8 Professional "link" two fields together, so that input from one wraps into the other?
I tried that, but I had some issues spacing the text field out correctly so it lined up with the lines already in the document. Also, the two lines do not match up on both sides... It looks kind of like this:
Describe your current job responsibilities: ____________________ -
How to link dataTable component with Microsoft Access Database?
Please mail me @ [email protected]
Creator might not support MS Access yet but use this code for an access database connection will always work even through notepad or textpad:
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;
* @author Mark Hennessy
public class MyDataSource {
private static MyDataSource ds = null;
private static java.sql.Connection connection = null;
/** Creates a new singleton instance of MyDataSource */
private MyDataSource() {
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection = java.sql.DriverManager.getConnection("jdbc:odbc:<db name>", "guest", "guest");
}catch(ClassNotFoundException cnf){
cnf.printStackTrace();
}catch(java.sql.SQLException sqle){
sqle.printStackTrace();
public static DataSource getInstance() {
if(ds == null)
ds = new DataSource();
return ds;
public java.sql.Connection getConnection() {
return this.connection;
public static void closeConnection() {
try{
connection.close();
}catch(java.sql.SQLException sqle){
sqle.printStackTrace();
plus set up the ODBC connection via click start , click run and then copy and paste the following "odbcad32.exe" without the quotes, click ok, click user DSN tab, click Add...button select Microsoft Access Driver (*.mdb) click finish, give <db name> name of ur access database, give any description <whatever> or leave blank click the select... button navigate to the access database u want to connect to in your java code and select it.
in calling program
public class CustomersImplimentation {
private static java.sql.Connection connection = null;
private java.sql.ResultSet rs = null;
public CustomersImplimentation(){
connection = MyDataSource.getInstance().getConnection();
public Customers[] findAll(){
java.util.ArrayList list = new java.util.ArrayList();
String sql = "SELECT * FROM CUSTOMERS";
try{
java.sql.Statement stmt = connection.createStatement();
rs = stmt.executeQuery(sql);
while(rs.next()){
list.add(new Customers(rs.getInt(1), rs.getString(2), rs.getString(3)));
}catch(java.sql.SQLException sqle) {
System.out.println((new StringBuilder()).append(
"SQLException :: executeQuery Cannot find all Customers:").append(sqle).toString());
Customers[] customers = new Customers[list.size()];
for(int i = 0; i < list.size(); i++){
customers[i] = (Customers)list.get(i);
return customers;
if you have a Customers class created with set and get methods and a constructor that takes an int string string i.e.
public Customers(int ID, String firstName, String lastName){}
then u should be able to run these classes from within creator with an access database. hope this helps?
regards
Henno -
Cannot Link PDF form to web page
Have form Centeral and Create PDF and cannot get eighter to link form to web page?
Sorry I don't understand. Can you provide details on the problem you are having.
Randy -
Opening and populating a PDF form with VBA code in Access 2007
I had posted this in Acrobat Windows. It was suggested this (and the SDK forum) may be a better forum ...
I'm trying to load and then populate a PDF form programmatically using Access/VBA. I'm patterning this after code that worked fine in Acrobat 5.0 but is throwing errors in Acrobat 9. We're using Access 2007 on Windows XP and Vista computers.
The Access project has a reference to Adobe Acrobat 9.0 Type Library. Attached is a jpg showing all the references in the Access project.
The error "Object variable not set (Error 91)" is happening with this statement:
Set PDDoc = AVDoc.GetPDDoc
Here is the code I'm trying to use. I've always been a little fuzzy exactly which objects need to be created and the sequence they need to be created in. Once I got it working in Acrobat 5 I left it alone.
Dim WshShell As Object
Dim myApp As Acrobat.AcroApp
Dim AVDoc As Acrobat.AcroAVDoc
Dim PDDoc As Acrobat.AcroPDDoc
Dim PauseTime, Start
Set WshShell = CreateObject("Wscript.Shell")
' run the Acrobat application within that shell and pass it a document name
WshShell.Run "Acrobat.exe C:\Users\Christian\Documents\data\dist5\dist05_face_only_nh.pdf"
'// Set/Get Acrobat Objects
' create an automation object that references the active copy of Acrobat
Set myApp = CreateObject("AcroExch.App")
' reference the acrobat document we loaded above
'Set AVDoc = CreateObject("AcroExch.AVDoc")
Set AVDoc = myApp.GetActiveDoc()
' this apparently runs some method available to AVDOC
Set PDDoc = AVDoc.GetPDDoc '<------------------ THIS IS THE LINE THROWING THE ERROR
' this is how you reference the JSObject
Set jso = PDDoc.GetJSObject
' let's clear the form
temp = jso.resetForm()
Set x = jso.getField("txt1_name")
x.Value = "Bing Crosby"
Set x = jso.getField("txt2_sex")
x.Value = "Male"
Set WshShell = Nothing
Set myApp = Nothing
Set AVDoc = Nothing
Set PDDoc = Nothing
Thanks in advance for any help.
Christian BahnsenUsing the "Developing Applications Using Interapplication Communication" reference, I've been filling in knowledge gaps and baby-stepping until I hit this major wall. FYI: from page 22 in the reference
Example 2.6 Displaying “Hello, Acrobat!” in the JavaScript console will not work as shown in Access VBA. I've tried the example in both Access 2003 and 2007. The sample code as is throws error 91 (see attachment error91.jpg), "Object variable ... not set".
I add Set to the following 3 lines:
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
Set jso = gPDDoc.GetJSObject
Running the code after adding "Set" doesn't throw an error but it does crash Access every time. (see attachment error_reporting.jpg)
Any suggestions?
Here's the entire code snippet:
Private Sub cmdHelloAcrobat_Click()
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open("C:\chris\acrobat_test.pdf") Then
Set jso = gPDDoc.GetJSObject
jso.console.Show
jso.console.Clear
jso.console.println ("Hello, Acrobat!")
gApp.Show
End If
End Sub -
Hi,
I have to connect Oracle form with MS Access database. I have used ODBC to connect but failed and got error Ora-03121. Can someone help me to do it.
Regards,
MuazzamIf you search for ODBC and ACCESS, you get a lot of links, one of them is this Re: Connecting Oracle forms 6i to MS Access
-
PDF forms that can be printed but not saved - possible?
Does anyone know if it is possible to do the following:
- First of you create PDFs that you would put on to a web site.
- The user would then fill in fields on this PDF form when they access it.
- This would create a completed form which the user could then print but they would be unable to save it.
Is this possible?
Someone mentioned Adobe LiveCycle Designer to me. Can this be used to achieve all this? Or what software would be needed or would you recommend to do this?
Thanks.PROBLEM
1. My documents sent to folder in acrobat organizer.
2. If I delete the document in my documents it deletes the document acrobat organizer
3. I uninstalled acrobat 8 standard and reinstalled it.
4. Then I uninstalled Adobe reader 8
5. Javascipt-How do I determine the existence of acrobat?
6. Is Acrobat required to be in Javascript? -
Is it possible for users to enter data on PDF forms?
I would like to use Crystal Reports to generate a PDF form with data from database; I am experienced with that.
Here's the question -- Many of the fields will be populated from my database, but I would like to leave some fields blank for the user to edit manually. (I do not expect these edits to update the database.) Is there a field or object I can insert to allow for these manual edits?
I have seen this feature at my own benefits website. I can click on the PDF and enter some values in blank fields. It gives me a warning that the changes will only be shown when I print, not when I save.
I have been unable to create this feature using Visual Studio 2005. Do I have to upgrade to 2008? Or do I have to upgrade my Crystal Report package in Visual Studio? Or is this feature not possible in Visual Studio?
Any thoughts are most welcome.
Edited by: John Miedema on Sep 3, 2008 9:07 PMThere are 3rd-party tools (see comprehensive list at http://www.kenhamady.com/bookmarks.html) that provide extra pdf functionality on top of the pdf export from Crystal.
In the case of my Visual CUT software, you can use hidden formulas inside your Crystal report to generate form fields (pre-populated as well as empty) as part of the pdf export process.
hth,
ido
Maybe you are looking for
-
Receiving "internal error" when trying to burn mp3 disc from playlist
I'm trying to burn an mp3 disc from a playlist that I've created. Unfortunately, I keep getting an error. I'm currently running iTunes 11.0.2 on my iMac which is currently running 10.8.3. I've done this many times before, and this is the first that
-
Is there a way to use IBOutlet with compound types in IB?
I have a form which has numerous text fields with their associated labels. To avoid code duplication, rather than have something like: UILabel* nameLabel; UITextField* nameTextField; NSString* nameString; @property (nonatomic, retain) IBOutlet UILabe
-
Printer driver is not compatible with Vista
The software with my hp psc 1210 printer is incompatable with my new laptop with a Vista operating system. Loading this screws up my laptop shut down! How can I find a driver to download which suits Vista?
-
Simplified Chinese search in RH9 is partial, non-existent in RH8
I notice the adobe marketing literature states RH9 is fully searchable with simplified chinese character sets but my company's testing shows otherwise. The search results do not pick up all keywords in the topics. In fact, the search results are mi
-
I have Internet Explorer and Adobe Flash Player's latest version. I get a blankk spot for some ads, etc. Do I need ActiveX or Google Chrome Optional to get the video that is now black box?