Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Forms - whats the latest wisdom
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00700482
Message ID:
00700516
Views:
14
>George
>
>Thanks I now have your code. Could you possibly give an example of the 'ShellExecute with the Print verb' so that I can use it.
>
>Thanks
>
Colin,

In VFP 7.0 it would go like this
DECLARE INTEGER ShellExecute IN Shell32;
  INTEGER hwnd, STRING @lpOperation,;
  STRING @lpFile, STRING @lpParameters,;
  STRING @lpDirectory, INTEGER nShowCmd
* lcfile is the file to print
lcfile = 'C:\mydir\mybmp.bmp'
lcop = 'print'
lcdir = JUSTPATH(lcfile)
= ShellExecute(_VFP.hWnd, @lcop, @lcfile, 0, @lcdir, 0)
George

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

Click here to load this message in the networking platform