>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 #
1073880I 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