July 18, 2007 at 2:22 pm
how can i open a tif document with a specific application other then the associated application?
July 19, 2007 at 1:24 pm
right click and select open with and then select app that u wanna use.
July 19, 2007 at 1:55 pm
i mean openning the file with the associated application by code.
the selected associated application through windows can be changed out side my app, and i want to control it.
July 19, 2007 at 9:05 pm
Take a look at the Shell command. Use something like this...
Dim dblTaskID As Double, strCommandLine As String
strCommandLine = "C:\WINDOWS\MyProgram.exe C:\Documents\file.tif"
dblTaskID = Shell (strCommandLine, vbMaximizedFocus)
... dblTaskID = 0 if it fails, otherwise you get the Task ID. The second argument is optional, but you can use it to control the window style.
July 20, 2007 at 6:03 am
thank you
July 20, 2007 at 8:21 am
Is it not as easy as right clic the file and choose "open with" ?
July 20, 2007 at 8:38 am
if you wan to inssure that your file will open by a specific associated app even if it was changed to another one, you need it
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply