Article View: comp.lang.visual.basic
Article #1A twist on PDF forms filling from VB
From: hboothe_no_spam
Date: Wed, 09 Jun 2004 03:19
Date: Wed, 09 Jun 2004 03:19
30 lines
2278 bytes
2278 bytes
Hello, all, I've read through both of the groups I'm posting to, and
all over the groups, regarding filling PDF forms with data from VB. I
have Acrobat 5 (and the SDK), and am using VB 6. I can successfully
place data in a field with code like the following (leaving out
declarations for brevity):
Set AdPre = CreateObject("AcroExch.AVDoc")
AdPre.Open "c:\test.pdf", "Foo"
Set formApp = CreateObject("AFormAut.App")
Set acroForm = formApp.Fields
acroForm.Item("AA1A").Value = "FOO"
Which basically opens up the form, grabs ref to the fields
collection/object and then sets one of their values to "FOO". Yea!
Not. The darned thing opens up in Acrobat (or viewer on a system with
only viewer). :-/ What I really want is this whole process to be
quiet and in the background. That is, the end user is using my
program to enter and store data and I want my program to fill the
fields and cause the printer to emit the printed report; I don't want
the end user to see a splash on the screen as Reader comes to life and
prints the document; more precisely, I don't want Acrobat/Reader to
ever launch with a UI. That is, is there anyway to make this happen
without actually opening the document in Acrobat/Reader? To me, to
have the document open, if only for a moment, in Acrobat/Reader, when
the user has no need to view it in that program but only to have the
printed report in hand, is junky.
TIA
--HC
Technical Details
Message-ID:
<f9dcae5e.0406081919.3360fa11@posting.google.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb992,ec9c08c3f55e1c9,start X-Google-Thread: 10177e,984dd6478961ccd2,start X-Google-Attributes: gidfb992,gid10177e,public Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews1.google.com!not-for-mail From: hboothe@gte.net (hboothe_no_spam@gte.net) Newsgroups: comp.lang.visual.basic,adobe.acrobat.sdk Subject: A twist on PDF forms filling from VB Date: 8 Jun 2004 20:19:57 -0700 Organization: http://groups.google.com Lines: 30 Message-ID: <f9dcae5e.0406081919.3360fa11@posting.google.com> NNTP-Posting-Host: 12.176.56.87 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1086751198 19809 127.0.0.1 (9 Jun 2004 03:19:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Jun 2004 03:19:58 +0000 (UTC)