>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'
lcpath = JUSTPATH(lcbmp)
lcparms = ""
lnresult = ShellExecute(0, @lcop, @lcbmp, @lcparms, @lcpath, 6)
hth,
George
Ubi caritas et amor, deus ibi est