Blackshark
Programmer
Hi,
First - I have tried to do a few searches regarding Shell and ShellWait etc... so apologies if this is simple and I have missed something.
The problem - I am using a dos program called nconvert to convert tif images to gifs, so Access 2003 can display them within a picture object. Within my VBA code I want to call it when ever an image is required.
I can run the following in a command line and it works fine:
C:\Documents and Settings\All Users\Application Data\XP RTM TIP Database>nconver
t -quiet -out gif -o "H:\Quality Assurance\TIP Databases\test.gif" "C:\Documents
and Settings\All Users\Application Data\XP RTM TIP Database\Form_Store\blank.ti
f"
If the H:\.... is called str_output and the C:\doc.... is called str_input - how do I write a line in VBA to call the program?
I have tried:
ShellWait str_ConvertAppLocation & " -quiet -out gif -o """ & str_output & """ """ & str_input & """, 1"
str_ConvertAppLocation is set to "C:\Documents and Settings\All Users\Application Data\XP RTM TIP Database\nconvert.exe"
No joy. A black window appears for 0.1s and thats it.
Help gratefuly received.
Regards Tim
First - I have tried to do a few searches regarding Shell and ShellWait etc... so apologies if this is simple and I have missed something.
The problem - I am using a dos program called nconvert to convert tif images to gifs, so Access 2003 can display them within a picture object. Within my VBA code I want to call it when ever an image is required.
I can run the following in a command line and it works fine:
C:\Documents and Settings\All Users\Application Data\XP RTM TIP Database>nconver
t -quiet -out gif -o "H:\Quality Assurance\TIP Databases\test.gif" "C:\Documents
and Settings\All Users\Application Data\XP RTM TIP Database\Form_Store\blank.ti
f"
If the H:\.... is called str_output and the C:\doc.... is called str_input - how do I write a line in VBA to call the program?
I have tried:
ShellWait str_ConvertAppLocation & " -quiet -out gif -o """ & str_output & """ """ & str_input & """, 1"
str_ConvertAppLocation is set to "C:\Documents and Settings\All Users\Application Data\XP RTM TIP Database\nconvert.exe"
No joy. A black window appears for 0.1s and thats it.
Help gratefuly received.
Regards Tim