Work silently when printing with COM

I am trying out the COM sample to see about integrating it into my program. When I run a TIF or JPG file through it, the windows picture and fax full screen printer shows up.
Is there a way to automate it so that it just creates the file?