Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using shell32.dll to print out Jpeg files
Message
De
16/10/2009 02:31:06
 
 
À
16/10/2009 02:24:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01429595
Message ID:
01429596
Vues:
42
You must change the default application for handling jpegs. In explorer you right click a jpeg file, Open With->Choose program. Make sure to check Always use the selected...

>I run the following command to print out jpeg file from vfp. But windows using WINDOW PHOTO VIEWER to preview it before printing. How can I modify the printing behavior to print only or using another program eg. Acdsee to print it out.
>
>TIA.
>
>
>
>
>		DECLARE INTEGER ShellExecute IN shell32.dll ;
>			  INTEGER hndWin, ;
>			  STRING cAction, ;
>			  STRING cFileName, ;
>			  STRING cParams, ;
>			  STRING cDir, ;
>			  INTEGER nShowWin
>
>
>			cFileName = "c:\temp\test.jpg"
>			cAction = "print"
>			
>
>			ShellExecute(0,cAction,cFileName,"","",1)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform