Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print screen
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01095864
Message ID:
01184806
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform