Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

436
Views
Usando VBA, ¿cómo configuro el tamaño de fuente de un campo en un formulario PDF?

Tengo un formulario pdf y Acrobat Pro instalado en mi máquina. En MS Access puedo escribir código VBA para abrir el formulario y completar los campos. Pero no puedo entender cómo ajustar el tamaño de fuente de un campo (u otras propiedades como el color) usando VBA.

Aquí hay un fragmento:

 Dim oAVDoc As Object, oPDDoc As Object Dim oJso As Object, oFld As Object Set oAVDoc = CreateObject("AcroExch.AVDoc") oAVDoc.Open("C:\Temp\test.pdf", "") Set oPDDoc = oAVDoc.GetPDDoc Set oJso = oPDDoc.GetJSObject Set oFld = oJso.getField("TestFieldName") oFld.Value = "This is the new value." '<-- works fine oFld.FontSize = 14 '<-- "Object doesn't support this property or method" oFld.Color = "red" '<-- also does not work

Me imagino que probablemente haya propiedades de objeto javascript para estos, pero no puedo encontrar ninguna documentación sobre lo que podrían ser.

Gracias por adelantado.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Usar
oFld.textSize = 14
en lugar de FontSize (ver también documentación )

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!