Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing images
Message
 
To
22/12/1998 10:43:02
Satadru Sengupta
Germinda Private Limited
Kolkata, India
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00169658
Message ID:
00169666
Views:
23
>Programically, how do I print images, pictures of the BMP and PIC variety onto the printer, without using REPORT or FORMS?
>Can an example be shown or sent to me?
>For instance, I want to print a BITMAP picture using, e.g. @...SAY command. Of course, this cannot be done in Visual FoxPro without having the image distorted. So how can I print the image?

Hi Satadru,

The easiest way is to let an application capable of printing the picture print it. This can be done through the ShellExecute API call like this
DECLARE INTEGER ShellExecute IN Shell32;
  INTEGER hwnd, STRING @lpOperation, STRING @lpFile,;
  STRING @lpParameters, STRING @lpDirectory, SHORT nshow
lcop = 'print'
* lcbmp is the bitmap file to print
lcpath = JUSTPATH(lcbmp)
lcparms = ""
* Print with the application minimized.
lnresult = ShellExecute(0, @lcop, @lcbmp, @lcparms, @lcpath, 6)
hth,
George

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

Click here to load this message in the networking platform