Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why ShellExecute doesn't want to print?
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Why ShellExecute doesn't want to print?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00991103
Message ID:
00991103
Vues:
70
I use Roman Verkhovsky's CaptureButton class to capture a form to a BMP. But after that I need to send this BMP to printer w/o using a REPORT. So I use this:
cfilename = SYS(5)+CURSOR()+"MyBmp.BMP"

DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow
result = ShellExecute(0, 'print', cfilename , "", "", 0)
*** Get The result & see if there is a error
There was no errors in ShellExecute , but This functions just opens my "Windows Picture and Fax viewer" and don't want to print. I change BMP assossiation to "Paint" but ShellExecute again opens "Windows Picture and Fax viewer".
Why?
How can I send BMP tp printer?
I tryed Ed Rauh's "How do I copy a file to a printer port" FAQ #7817 but nothing prints.

TIA
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform