Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print screen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01095864
Message ID:
01184806
Vues:
23
>There's no simple way, unfortunately. The ShellExecute opens the default application for the specified file type and forces this application to print.
>
>If not using API, I would create a simple web page around an image file -- single IMG tag. And then I would use the Browser control or IE object to print this page.
>
>With GDI API you have to open this file, create memory device context, obtain the device context for a printer and so on, and so on -- quite a lengthy and boring stuff.
>
>Even if GDI+ API simplifies the process of image file printing, it still requires some coding.

I guess I didn't try to search hard enough at first. You provided the full solution here Re: Printing a JPG file. Thread #1073824 Message #1073880

I just have to find a way to turn off printing of IE header and footer. (File .. and Page n of N...)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform