Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print bmp file
Message
 
À
28/12/2004 11:59:29
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00972617
Message ID:
00972754
Vues:
15
>Hi,
>
>I want to use the ? command to print a bmp file, not using the report form.
>
>How to code it ?
>
>Please advise.
>
Derek,

Use the ShellExecute() function in the Windows API
DECLARE INTEGER ShellExecute IN Shell32.DLL;
  INTEGER hwnd, STRING @lpOperation,;
  STRING @lpFile, STRING @lpParameters,;
  STRING @lpDirectory, INTEGER nShowCmd

lcfile = 'c:\mydir\mybmp.bmp'
lcpath = JUSTPATH(lcfile)
lcop = 'print'
= ShellExecute(0, @lcop, @lcfile, 0, @lcpath, 0)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform