Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

VBA - Writing PDF Form Fields with VBA from EXCEL worksheet

Explorer ,
Sep 02, 2016 Sep 02, 2016

Good evening,

I'm writing data from EXCEL to a PDF with formfields. NUMBERS are fine but STRINGS are not acceptet.

Dim AcroExchApp As Acrobat.CAcroApp

Dim AcroExchAVDoc As Acrobat.CAcroAVDoc

Dim AcroExchPDDoc As Acrobat.CAcroPDDoc

Set AcroExchApp = CreateObject("AcroExch.App")

Set AcroExchAVDoc = CreateObject("AcroExch.AVDoc")

Set jso = AcroExchPDDoc.GetJSObject

jso.getField("Text1").Value = text1

If text1 is "1" it works

If text1 is "ABC" I get the error '13'

Someone can help me on this topic ?

TOPICS
Acrobat SDK and JavaScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 02, 2016 Sep 02, 2016

Not entirely sure how this connects to Enterprise Deployment. Is this part of your deployment/install/update procedure?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2016 Sep 03, 2016
LATEST

May be that the field accepts only numeric values.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines