Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print bmp file
Message
 
To
28/12/2004 11:59:29
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00972617
Message ID:
00972754
Views:
14
>Hi,
>
>I want to use the ? command to print a bmp file, not using the report form.
>
>How to code it ?
>
>Please advise.
>
Derek,

Use the ShellExecute() function in the Windows API
DECLARE INTEGER ShellExecute IN Shell32.DLL;
  INTEGER hwnd, STRING @lpOperation,;
  STRING @lpFile, STRING @lpParameters,;
  STRING @lpDirectory, INTEGER nShowCmd

lcfile = 'c:\mydir\mybmp.bmp'
lcpath = JUSTPATH(lcfile)
lcop = 'print'
= ShellExecute(0, @lcop, @lcfile, 0, @lcpath, 0)
George

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

Click here to load this message in the networking platform