By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,121 Members | 1,723 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,121 IT Pros & Developers. It's quick & easy.

Opening Tiff Files in Sepecific Program ~ Urgernt Help Needed!!!

P: 15
I need the code to open a TIF file in the Microsoft picture and fax viewer without setting this program as the default program for TIF files.

Does anyone know this?
Dec 27 '07 #1
Share this Question
Share on Google+
5 Replies


Minion
Expert 100+
P: 108
Not sure that this has anything to do with Access.... however the simplest way to do this is to right click the file and select "Open With..." this will give you the option to select a program other than the default. Once you've done this that program should show up in the list next time depending on your version of windows and settings.

Hope this helps.

- Minion -
Dec 27 '07 #2

P: 15
Minion,

The problem i am having is that i am trying to do this through Access VBA code. Something like the ShellEx command would do but i am unsure how i can specify a program... Any ideas?

Not sure that this has anything to do with Access.... however the simplest way to do this is to right click the file and select "Open With..." this will give you the option to select a program other than the default. Once you've done this that program should show up in the list next time depending on your version of windows and settings.

Hope this helps.

- Minion -
Dec 27 '07 #3

FishVal
Expert 2.5K+
P: 2,653
I need the code to open a TIF file in the Microsoft picture and fax viewer without setting this program as the default program for TIF files.

Does anyone know this?
Hi, there.

Actually that may require quite a tricky coding because "Microsoft picture and fax viewer" is not an executable file you may run with VBA Shell() command, but a DLL (...\WINDOWS\system32\shimgvw.dll). You can reference it - the library has name "Preview 1.0 type library" but I can't so far give you any ideas or references of how to work with it.

On the other hand you may easily open picture in Microsoft Office Picture Manager.
Expand|Select|Wrap|Line Numbers
  1. Shell "ois.exe X:\path\filename.tiff"
  2.  
Regards,
Fish
Dec 27 '07 #4

P: 15
Hi,

Thanks for that but iv just found a way of doing it before i checked the board again.

Expand|Select|Wrap|Line Numbers
  1. Shell "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen " & FILE NAME
  2.  
Thanks anyway!

Hi, there.

Actually that may require quite a tricky coding because "Microsoft picture and fax viewer" is not an executable file you may run with VBA Shell() command, but a DLL (...\WINDOWS\system32\shimgvw.dll). You can reference it - the library has name "Preview 1.0 type library" but I can't so far give you any ideas or references of how to work with it.

On the other hand you may easily open picture in Microsoft Office Picture Manager.
Expand|Select|Wrap|Line Numbers
  1. Shell "ois.exe X:\path\filename.tiff"
  2.  
Regards,
Fish
Dec 27 '07 #5

FishVal
Expert 2.5K+
P: 2,653
Hi,

Thanks for that but iv just found a way of doing it before i checked the board again.

Expand|Select|Wrap|Line Numbers
  1. Shell "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen " & FILE NAME
  2.  
Thanks anyway!
Nice solution.
Thank you for posting it.

Best regards,
Fish
Dec 27 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.