Hello All,

Does anyone know of a utility (or technique) for printing Adobe Acrobat PDF
files from within a VFP Application. I am scanning documents that need to be
printed along with my report. Ideally I have code like this:

report form myreport to print noconsole
for each pdf file that needs to be printed
print the pdf file
next

the line that says "print the pdf file" is the missing piece for me.

Thanks in advance.


--
Jeff Grippe
Hilldun Corporation

Re: PDF Printing from withing VFP by Gregory

Gregory
Wed Sep 17 08:22:23 CDT 2003

Jeff,

Declare long ShellExecute in shell32.dll ;
long hwnd, ;
string lpszOp, ;
string lpszFile, ;
string lpszParams, ;
string lpszDir, ;
long nShowCmd

FileName = '\tmp\1.pdf'

(1) to the standard printer
?ShellExecute(0, 'print', FileName, 0, 0, 0)

(2) to a specific printer
PrinterName = getprinter()
?ShellExecute(0, 'printto', FileName, '"'+PrinterName+'"', 0, 0)

Gregory
____________

"Jeff Grippe" <jeff@door7.com> wrote in message
news:vmgmmcld4rdq71@news.supernews.com...
> Hello All,
>
> Does anyone know of a utility (or technique) for printing Adobe Acrobat
PDF
> files from within a VFP Application. I am scanning documents that need to
be
> printed along with my report. Ideally I have code like this:
>
> report form myreport to print noconsole
> for each pdf file that needs to be printed
> print the pdf file
> next
>
> the line that says "print the pdf file" is the missing piece for me.
>
> Thanks in advance.
>
>
> --
> Jeff Grippe
> Hilldun Corporation
>
>


Re: PDF Printing from withing VFP by John

John
Wed Sep 17 08:36:19 CDT 2003

Hey Jeff,

A common way is to install Acrobat Writer then print to the "printer" that
is set up. Rick Strahl's website, www.west-wind.com had a white paper on
this that gets around the nasty naming dialog. There are also other tools
that work via drivers that I've not tried. I understand that pdf-exchange
is a good one that creates very compact files. FRX2ANY is another one
that's often touted.

HTH,

John

"Jeff Grippe" <jeff@door7.com> wrote in message
news:vmgmmcld4rdq71@news.supernews.com...
> Hello All,
>
> Does anyone know of a utility (or technique) for printing Adobe Acrobat
PDF
> files from within a VFP Application. I am scanning documents that need to
be
> printed along with my report. Ideally I have code like this:
>
> report form myreport to print noconsole
> for each pdf file that needs to be printed
> print the pdf file
> next
>
> the line that says "print the pdf file" is the missing piece for me.
>
> Thanks in advance.
>
>
> --
> Jeff Grippe
> Hilldun Corporation
>
>



Re: PDF Printing from withing VFP by kurt

kurt
Wed Sep 17 08:34:02 CDT 2003

Try This :

If you have Acrobat installed on t=your machine, you can add the
activex control to you list of controls and use it on a form.

So, add the control to a form, name it oPdf (you may also want to set
it's visible property to .f.)

Then, in your loop use the 2 commands :

ThisForm.oPdf.LoadFile(<MyFileNameString>)
ThisForm.oPdf.printAll


On Wed, 17 Sep 2003 09:02:26 -0400, "Jeff Grippe" <jeff@door7.com>
wrote:

>Hello All,
>
>Does anyone know of a utility (or technique) for printing Adobe Acrobat PDF
>files from within a VFP Application. I am scanning documents that need to be
>printed along with my report. Ideally I have code like this:
>
>report form myreport to print noconsole
>for each pdf file that needs to be printed
> print the pdf file
>next
>
>the line that says "print the pdf file" is the missing piece for me.
>
>Thanks in advance.
>
>
>--
>Jeff Grippe
>Hilldun Corporation
>
>