Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY FILE mypdf.pdf TO PRN prints junk
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Miscellaneous
Thread ID:
01113850
Message ID:
01113851
Views:
33
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I have previously created PDF file which I want to send to the printer. So I used the command COPY FILE mypdf.pdf TO PRN but all I got was junk.
>
>Is there anyway to use automation of adobe acrobat reader to print the file without opening the file first in Adobe and then clicking the print button?

How about ShellExecute?
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow
ShellExecute(0, 'print', [MyPDFFile.PDF], '', '', 1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform