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:24:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Using shell32.dll to print out Jpeg files
Miscellaneous
Thread ID:
01429595
Message ID:
01429595
Views:
208
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)
Next
Reply
Map
View

Click here to load this message in the networking platform