Please, I have searched through 13 pages of forum results and have not found an answer to what I believe is probably a simple question.

I have blank forms in .pdf format that I would like to fill out with data from my VBA application, then print the forms. I have Acrobat 7.0 and the Acrobat 7.0 SDK installed.

I have searched the SDK documentation and the closest example I have found is this simple code to open a JavaScript console:

VB Code:
  1. Dim recSet As Recordset
  2.     Dim AcrobatObj As Acrobat.CAcroApp
  3.     Dim AcrobatDoc As Acrobat.CAcroPDDoc
  4.     Dim jso As Object
  5.  
  6.     Set AcrobatObj = CreateObject("AcroExch.App")
  7.     Set AcrobatDoc = CreateObject("AcroExch.PDDoc")
  8.     If AcrobatDoc.Open("U:\Templates\Sample.pdf") Then
  9.         Set jso = AcrobatDoc.GetJSObject
  10.         jso.console.Show
  11.         jso.console.Clear
  12.         jso.console.println ("Hello, Acrobat!")
  13.         AcrobatApp.Show
  14.     End If
  15.    
  16.     DoEvents
  17.    
  18.     Set AcrobatObj = Nothing
  19.     Set AcrobatDoc = Nothing
  20.     Exit Sub

This works; however I don't think I need to use the console to accomplish what I want. Can someone tell me what the syntax would be to move to a specific field (or bookmark?) within the PDF and insert text? Also the syntax for sending the document to the default printer would be helpful.

If anyone can direct me I would really appreciate it, as I have spent hours (weeks, really!) searching for the answers and I'm lost. Thanks!!!