Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shellexec
Message
 
To
12/04/2000 11:33:06
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00358330
Message ID:
00358737
Views:
13
>problem. To do so:
DECLARE INTEGER ShellExecute IN Shell32;
>>  INTEGER hWnd, STRING @lpOperation,;
>>  STRING @lpFile, STRING @lpParameters,;
>>  STRING @lpDirectory, INTEGER nShowCmd
>>* lcFileName is the file
>>lcpath = JUSTPATH(lcFilename)
>>lcop = 'print'
>>lcparms = ""
>>lnresult = ShellExecute(0, @lcop, @lcFilename, @lcparms, @lcpath, 0)
See what this does.
>
>Ok, I'll give it a shot!
>
>Is there a way to control which printer that the command prints the file to? I'd love to be able to automatically include the images as part of my roster, so it will all go as a single print job. That way, I can direct it all to go to winfax.
>
>Thanks!

SET PRINTER TO NAME won't work (I don't think) because it doesn't change the default printer. You could use the WSH to change the default, or the printer utility (FoxPrinter?) that Robert Abram has available. You could also use the API to either re-write the WIN.INI file or change the registry setting. I'd investigate the first two options. They'll give you a small code base to maintain.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform