Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY FILE mypdf.pdf TO PRN prints junk
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Divers
Thread ID:
01113850
Message ID:
01113851
Vues:
32
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform