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
>
>