File is not printable

2009-07-14 18:39:00 by EricLomm

Hello,

I am working on a proof of concept for a client of ours using the COM interface. I have been able to on one of the computers that I use for development get some code that works the way I would like for it to work. (i.e. it prints the file I want to print with out requiring any intervention for an end user)

On the other computer that I use for development, when I run the exact same code with the exact same file I am getting a message that says the file is not printable. I have tried this with both .tif, .png and .pdf file and this appears to be the case with all the file I have tried.

If I comment out the code to check if the file is printable the file will open up in its default viewer. From there I am able to print the file, but in the solution I am developing I do not want to have the end users to manually intervene.

I found some information talking about adding information to the registry to make specific file types printable, but I don't want to have modify all the possible file types that might be printed on all the computers the application I will be developing might be deployed to.

Is there an easy way to modify settings so that various file types can be made printable?