>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 see, thanks a lot for your explanation. I may then go the first route.
If it's not broken, fix it until it is.
My Blog