Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing images
Message
 
À
22/12/1998 10:43:02
Satadru Sengupta
Germinda Private Limited
Kolkata, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00169658
Message ID:
00169666
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform