

- #FORN FIELDS IN OPENOFFICE DRAW HOW TO#
- #FORN FIELDS IN OPENOFFICE DRAW PDF#
- #FORN FIELDS IN OPENOFFICE DRAW CODE#
- #FORN FIELDS IN OPENOFFICE DRAW SERIES#
‘ Set oManipAV = oEmbeddedPDF.OpenAVDoc(“Form 62”) SzO = oEmbeddedPDF.Open(wsRequest.Range(“File62”).Value) Set oFullPDF = CreateObject(“AcroExch.PDDoc”) Set oTempDoc = CreateObject(“AcroExch.PDDoc”) Set oManipPDF = CreateObject(“AcroExch.PDDoc”) Set oEmbeddedPDF = CreateObject(“AcroExch.PDDoc”) Set oAcroApp = CreateObject(“AcroExch.App”) SFile = Right(vFileName, Len(vFileName) – InStrRev(vFileName, “\”)) SPath = Left(vFileName, Len(vFileName) – 4) VFileName = Application.GetSaveAsFilename(sDefName, “PDF Files (*.pdf), *.pdf”) SDefName = “ABC Fund – Forms 62 (xx.xx.xx).pdf”

I’d certainly appreciate any help or insight on this.
#FORN FIELDS IN OPENOFFICE DRAW CODE#
I only did that in this code because I thought it might help (it didn’t). Is there a way to mimic that in Excel VBA? I actually do not even need to save the individual forms - only the single “combined” PDF.
#FORN FIELDS IN OPENOFFICE DRAW PDF#
After that is completed, you can combine the individual PDF files and the field data is not overwritten. In Adobe Acrobat you can avoid that problem by “flattening” the individual PDF files so that the form field names are removed and the data in the form cannot be edited. This is the same problem that happens if you try to combine like forms into a single PDF in Adobe. However when I try to build the single PDF, it has the correct number of forms but the data is all filled in identically. The individual forms get created and saved with the correct data. I’ve tried a number of things but I keep getting stuck on the single PDF creation.
#FORN FIELDS IN OPENOFFICE DRAW SERIES#
In Excel 2010 VBA, I am trying to create a series of PDF forms each individually filled out but then combine them into a single PDF. For anybody interested in XFA forms, the LifeCycle Designer ES Scripting Reference is a must read. For those, you need to use the XFA DOM to access the form data. The updated form field is not saved (because the document does not get saved) – I’ll leave that up to the reader to figure out.Īlso, this program will not work with XFA forms (the ones you create in Designer). Give it a try and let me know how it works for you. The form field object has a property “value” which contains the actual value that’s assigned to the field. The only new command introduced is the getField() function, which returns a form field. With the explanation in the previous two blog posts, it should not be hard to understand what’s going on here. This program requires a PDF file with text fields called “Text1” and “Text2” to be stored as C:\temp\sampleForm.pdf. MsgBox "Values read from PDF: " & text1 & " " & text2įield2.Value = 13 ' assign the number 13 to the fields value ' get the information from the form fields Text1 and Text2 Set theForm = CreateObject("AcroExch.PDDoc") Set AcroApp = CreateObject("AcroExch.App") When we now use the following script as the button handler, we can work with form fields: Private Sub CommandButton1_Click() We start the same way as in my old VBA sample to create a VBA program that references the Acrobat TLB and to add a button to a document.
#FORN FIELDS IN OPENOFFICE DRAW HOW TO#
I had to answer another question today about how to exactly do that, so I whipped up a quick sample program that demonstrates the use of the JavaScript Object (JSO) to read and write AcroForm fields. I’ve written about VBA and Acrobat JavaScript before, and I’ve also mentioned that you can combine VBA and JavaScript to access PDF form fields, but I still owe a sample for that.
