Henry, I have done something very similar. In order to the avoid complexity of using the Adobe Reader API you could send keystrokes to a non VFP application i.e Adobe Reader.
1. Load up the PDF using RUN or ShellExec() 2. Find to active pdf window using: FUNCTION FindWind(tcWindow) DECLARE INTEGER FindWindow IN user32 ; STRING lpClassName, STRING lpWindowName LOCAL lnHandle lnHandle = FindWindow(Null, tcWindow) RETURN (lnHandle) 2. Set the window to the foreground using: DECLARE INTEGER SetForegroundWindow ; IN user32 INTEGER hWindow 3. Send keystrokes using: DECLARE keybd_event IN user32 ; SHORT bVk, SHORT bScan, ; INTEGER dwFlags, INTEGER dwExtraInfo * DECLARE SHORT VkKeyScan IN user32 INTEGER ch This will do the job no problem. If you want a worked example then just ask and I'll dig one out. Regards Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 27 June 2008 13:24 To: [email protected] Subject: Writing to a PDF form The situation: ------------- - There's a 37-page PDF form that someone created - Turns out 1/3 of the fields come from a report my VFP9 application generates - Users think it's normal to re-type my report into the PDF form - I think otherwise... The question: ------------ A PDF form must have fields and/or tags that I can look for and plug my values in, no? The caveat: ---------- The PDF form will already exist and will most likely be partially filled. It is not an option to re-generate the PDF form from the app. I simply want to alter an existing PDF file. Has anyone done something like this? Is it at all doable? Any help would be greatly appreciated. Henry [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

