Print BMP in Windows XP


I'm developing an interface to convert a BMP file to PDF. When I send the file to print, Windows shows the Windows Picture and Fax viewer, when I close it, then the file is not created. I need to preview the image before print.

If I change the default viewer, then the file is created but it doesn't preview the image.

How can I fix that?