Problem : How to Open, print and close *.TIF files with VBA command

Problem : How to Open, print and close *.TIF files with VBA command

Hi All,

I would like to open a selected TIFF file from ms access using VBA. I was hoping a TIFF file would also open in iternet explorer but no luck.
The Tiff files can only be viewed or printed using fax Viewer or MS document imaging. I realy dont care what program wil open the file. I just want the program to start, then load the picture . Print the picture and close again.

Any suggestions on how to do this


 

Solution: How to Open, print and close *.TIF files with VBA command

If I can see correctly the /p switch is missing in the string for the application.
Try adding it there. It might be why the program only opens and the file and closes it again without sending it to the printer.

The /p switch is present in the DDE settings but I have found in the past that DDE doesn’t always work properly. In fact I had to disable DDE for some file extensions in order for the files to open at all even from Explorer.

Also, I noticed one thing: there are two different paths to the viewer program used in that dialogue. The string at the top uses the path Microsoft SharedMSPaper while the string in the DDE settings has got the path Microsoft SharedMODI (which is what’s int the settings on my computer as well).
Maybe try changing the path as well if adding the /p switch doesn’t work.