Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using shell32.dll to print out Jpeg files
Message
From
16/10/2009 02:31:06
 
 
To
16/10/2009 02:24:25
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01429595
Message ID:
01429596
Views:
41
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)
>
Previous
Reply
Map
View

Click here to load this message in the networking platform